Function at 0x4b2480
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
jmp 0x4b249b
mov ecx, dword [0x6e834c]
call fcn.004ba650
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test al, al
mov byte [ebp - 0x15], 0
push esi
setne bl
push 0
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, dword [ebp - 0x20]
test eax, eax
movzx ecx, byte [ebp - 0x15]
mov edx, 1
mov eax, dword [ebp + 0x10]
cmovne ecx, edx
push 0x66
mov dword [ebp - 0x2c], ecx
mov ecx, edi
mov dword [edi + 0x1f88c], eax
mov eax, dword [ebp + 0x14]
push 0x64
mov dword [edi + 0x1f890], eax
call fcn.004fe250
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push ebx
call fcn.004b45a0
add esp, 4
mov ecx, edi
push eax
push 0
push 4
push esi
call fcn.004fe190
test al, al
jne 0x4b2547
push str.CMSWindow::Create_failed
call fcn.004ef1c0
push str.CREATE_WINDOW
mov eax, dword [sym.imp.python27.dll_PyExc_RuntimeError]
push dword [eax]
call dword [sym.imp.python27.dll_PyErr_SetString]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret 0x14
lea ebx, [edi + 0x1d134]
mov ecx, ebx
mov dword [ebp - 0x30], ebx
call fcn.004ba630
test al, al
je 0x4b2569
mov ecx, dword [0x6ea538]
lea ecx, [ecx + 4]
call fcn.0051d0f0
mov ecx, ebx
call fcn.004ba650
test al, al
jne 0x4b25c1
mov ecx, ebx
call fcn.004ba630
test al, al
jne 0x4b2588
call fcn.004bed90
test al, al
je 0x4b25c1
mov ecx, ebx
mov byte [edi + 0x1f998], 0
mov dword [edi + 0x1f9bc], 1
call fcn.004ba120
mov ecx, edi
mov esi, eax
call fcn.00457990
push esi
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.004b8ed0
mov dword [ebp - 0x1c], 1
jmp 0x4b2637
mov ecx, ebx
call fcn.004ba410
mov ecx, ebx
mov esi, eax
call fcn.004ba570
push esi
push eax
mov ecx, edi
call fcn.004fe110
cmp dword [ebp - 0x1c], 0
je 0x4b2625
cmp byte [ebp - 0x2c], 0
mov byte [edi + 0x1f998], 1
je 0x4b2637
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.004fe230
mov ebx, dword [ebp - 0xc]
mov ecx, edi
mov esi, dword [ebp - 8]
sub ebx, dword [ebp - 0x14]
sub esi, dword [ebp - 0x10]
call fcn.004fe280
mov ecx, dword [ebp - 0x20]
mov edi, 0xffffffc4
sub edi, esi
add edi, eax
call fcn.004fe290
mov ecx, dword [ebp - 0x20]
sub eax, ebx
push edi
push eax
jmp 0x4b2632
push 0
mov byte [edi + 0x1f998], 0
mov ecx, edi
push 0
call fcn.004fe5a0
jmp 0x4b263c
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.004b5890
test al, al
jne 0x4b265e
push str.CMSWindow::Cursors_Create_Error
call fcn.004ef1c0
push str._CREATE_CURSOR_
jmp 0x4b2522
lea esi, [ebx + 0x1d134]
mov ecx, esi
call fcn.004ba5d0
test al, al
jne 0x4b267a
lea ecx, [ebx + 0xe8]
call fcn.0058b3d0
mov ecx, esi
call fcn.004ba5b0
test al, al
jne 0x4b2691
mov ecx, esi
call fcn.004ba620
mov byte [0x71e7a8], al
mov ecx, esi
call fcn.004ba340
mov ecx, esi
mov ebx, eax
call fcn.004ba120
mov ecx, esi
mov edi, eax
call fcn.004ba410
mov ecx, dword [ebp - 0x30]
mov esi, eax
call fcn.004ba570
push ebx
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
push edi
push dword [ebp - 0x1c]
push esi
push eax
call fcn.004b28a0
test al, al
je 0x4b2532
call fcn.004faeff
lea ecx, [ebx + 0x1d134]
call fcn.004ba5b0
test al, al
je 0x4b26ee
call fcn.00505f40
test al, al
sete byte [ebp - 0x1c]
jmp 0x4b26fc
lea ecx, [ebx + 0x1d134]
call fcn.004ba620
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x1b3cc]
call fcn.0054f6d0
push 1
mov ecx, ebx
call fcn.004fe5c0
cmp dword [ebx + 0x1f9bc], 0
je 0x4b2738
push 0x40
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push 0
push 0
push 0
call fcn.00457990
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.00457990
push eax
lea ecx, [ebx + 0x1c]
call fcn.005111d0
test al, al
je 0x4b2532
lea ecx, [ebx + 0x1d134]
call fcn.004ba140
lea ecx, [ebx + 0x1d134]
call fcn.004ba610
xor ecx, ecx
test al, al
setne cl
push ecx
mov ecx, ebx
call fcn.004b5af0
lea ecx, [ebx + 0x1d12c]
call fcn.00519370
test al, al
jne 0x4b2798
push str.NetDevice::Create_failed
call fcn.004ef1c0
push str._CREATE_NETWORK_
jmp 0x4b2522
call fcn.00505f40
test al, al
jne 0x4b27ab
push 1
call fcn.004fb133
add esp, 4
lea ecx, [ebx + 0x18c28]
call fcn.00470b30
call fcn.004d8980
mov esi, dword [0x6ea538]
mov ecx, ebx
call fcn.00457990
push eax
mov ecx, esi
call fcn.004b9170
mov ecx, dword [0x6ea538]
push 0
push 0x650d78
lea ecx, [ecx + 4]
call fcn.0051ca40
mov ecx, dword [0x6e6158]
call fcn.004af450
lea ecx, [ebx + 0x7c]
call fcn.00519a20
push 0x20
call fcn.0050fc30
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x28]
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 8
push 0
push eax
push 8
push 0x3a
call esi
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x1f9c0], eax
and eax, 0xfffffff9
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 8
push 0x3b
call esi
call fcn.004b3080
cmp byte [0x6ea535], 0
je 0x4b2869
cmp dword [0x6c2dc4], 0x10
mov eax, 0x6c2db0
cmovae eax, dword [0x6c2db0]
push eax
call dword [sym.imp.clinkAPI.dll_clinkStart]
add esp, 4
push str.d:_ymir_work_special_spheremap.jpg
push 0
call fcn.004f96e3
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.004f96e3
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.005994b1
mov esp, ebp
pop ebp
ret 0x14