Function at 0x4599a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x6ae450]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x4599be
mov ecx, dword [0x703200]
call fcn.004b7db0
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test al, al
mov byte [esp + 0x13], 0
push esi
setne cl
push 0
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_FindWindowA]
movzx ecx, byte [esp + 0x13]
test eax, eax
mov eax, dword [ebp + 0x10]
mov edx, 1
cmovne ecx, edx
mov dword [ebx + 0x22cbc], eax
mov eax, dword [ebp + 0x14]
push 0x66
mov dword [esp + 0x24], ecx
mov ecx, ebx
push 0x64
mov dword [ebx + 0x22cc0], eax
call fcn.00524510
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [esp + 0x18]
test edi, edi
push eax
setne cl
call fcn.00459990
push eax
push 0
push 4
push esi
mov ecx, ebx
call fcn.00524450
test al, al
jne 0x459a74
push str.CMSWindow::Create_failed
call fcn.0050aef0
add esp, 4
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, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 0x14
lea esi, [ebx + 0x20570]
mov ecx, esi
call fcn.004b7ec0
test al, al
je 0x459a93
mov ecx, dword [0x703218]
lea ecx, [ecx + 4]
call fcn.0052d4e0
mov ecx, esi
call fcn.004b7db0
test al, al
jne 0x459ae6
call fcn.004b7ec0
test al, al
jne 0x459ab0
call fcn.004530f0
test al, al
je 0x459ae6
mov ecx, ebx
mov byte [ebx + 0x22dc8], 0
mov dword [ebx + 0x22dec], 1
call fcn.004475c0
mov ecx, esi
call fcn.004b7b90
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.0045e140
mov edi, 1
jmp 0x459b69
mov ecx, esi
call fcn.004b7b80
push eax
call fcn.004b7b70
push eax
mov ecx, ebx
call fcn.005243e0
test edi, edi
je 0x459b57
cmp byte [esp + 0x20], 0
mov byte [ebx + 0x22dc8], 1
je 0x459b69
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.005244f0
mov edi, dword [esp + 0x2c]
mov ecx, ebx
mov esi, dword [esp + 0x30]
sub edi, dword [esp + 0x24]
sub esi, dword [esp + 0x28]
call fcn.00524540
mov ecx, 0xffffffc4
sub ecx, esi
add eax, ecx
mov ecx, ebx
push eax
call fcn.00524550
sub eax, edi
mov ecx, ebx
push eax
call fcn.005247b0
mov edi, dword [esp + 0x14]
lea esi, [ebx + 0x20570]
jmp 0x459b69
push 0
push 0
mov ecx, ebx
mov byte [ebx + 0x22dc8], 0
call fcn.005247b0
jmp 0x459b6e
mov ecx, ebx
call fcn.0045b290
test al, al
jne 0x459b90
push str.CMSWindow::Cursors_Create_Error
call fcn.0050aef0
add esp, 4
push str._CREATE_CURSOR_
jmp 0x459a4e
mov ecx, esi
call fcn.004b7bb0
test al, al
jne 0x459ba6
lea ecx, [ebx + 0xe8]
call fcn.005a8450
mov ecx, esi
call fcn.004b7e80
test al, al
jne 0x459bbb
call fcn.004b7eb0
mov byte [0x6f563c], al
mov ecx, esi
call fcn.004b7ba0
push eax
call fcn.004b7b90
push eax
push edi
call fcn.004b7b80
push eax
call fcn.004b7b70
push eax
mov ecx, ebx
call fcn.00459400
test al, al
je 0x459a5e
call fcn.00514dd0
mov ecx, esi
call fcn.004b7e80
test al, al
je 0x459c0c
call fcn.00523790
lea ecx, [ebx + 0x1e7b0]
test al, al
je 0x459c08
push 0
jmp 0x459c1d
push 1
jmp 0x459c1d
mov ecx, esi
call fcn.004b7eb0
movzx eax, al
lea ecx, [ebx + 0x1e7b0]
push eax
call fcn.005580e0
push 1
mov ecx, ebx
call fcn.005247d0
cmp dword [ebx + 0x22dec], 0
je 0x459c50
push 0x40
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push 0
push 0
push 0
call fcn.004475c0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.004475c0
push eax
lea ecx, [ebx + 0x1c]
call fcn.00524b80
test al, al
je 0x459a5e
mov ecx, esi
call fcn.004b7770
mov ecx, esi
call fcn.004b7bc0
mov ecx, ebx
test al, al
je 0x459c80
push 1
jmp 0x459c82
push 0
call fcn.0045b590
lea ecx, [ebx + 0x20568]
call fcn.00527350
test al, al
jne 0x459cad
push str.NetDevice::Create_failed
call fcn.0050aef0
add esp, 4
push str._CREATE_NETWORK_
jmp 0x459a4e
call fcn.00523790
test al, al
jne 0x459cc0
push 1
call fcn.00515130
add esp, 4
lea ecx, [ebx + 0x19844]
call fcn.0047a0f0
call fcn.00445280
mov esi, dword [0x703218]
mov ecx, ebx
call fcn.004475c0
push eax
mov ecx, esi
call fcn.00477f10
mov ecx, dword [0x703218]
push 0
push 0x64d11e
lea ecx, [ecx + 4]
call fcn.0052ce40
call fcn.004bbb80
lea ecx, [ebx + 0x7c]
call fcn.00525440
push 0x20
call fcn.0052dcd0
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [esp + 0x1c]
add esp, 4
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], 8
push 0
push eax
push 8
push 0x3a
call esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x22df0], eax
and eax, 0xfffffff9
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 8
push 0x3b
call esi
push str.d:_ymir_work_special_spheremap.jpg
push 0
call fcn.005133b0
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.005133b0
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 0x14