Function at 0x478950
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x6b64f0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x47896e
mov ecx, dword [0x70ed70]
call fcn.004d6840
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 + 0x294b0], eax
mov eax, dword [ebp + 0x14]
push 0x66
mov dword [esp + 0x24], ecx
mov ecx, ebx
push 0x64
mov dword [ebx + 0x294b4], eax
call fcn.0054a360
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [esp + 0x18]
test edi, edi
push eax
setne cl
call fcn.00478940
push eax
push 0
push 4
push esi
mov ecx, ebx
call fcn.0054a1d0
test al, al
jne 0x478a24
push str.CMSWindow::Create_failed
call fcn.005326e0
add esp, 4
push str.CREATE_WINDOW
mov eax, dword [sym.imp.python22.dll_PyExc_RuntimeError]
push dword [eax]
call dword [sym.imp.python22.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.005d67d1
mov esp, ebp
pop ebp
ret 0x14
lea esi, [ebx + 0x26d94]
mov ecx, esi
call fcn.004d6950
test al, al
je 0x478a43
mov ecx, dword [0x70ed94]
lea ecx, [ecx + 4]
call fcn.00553170
mov ecx, esi
call fcn.004d6840
test al, al
jne 0x478a96
call fcn.004d6950
test al, al
jne 0x478a60
call fcn.0046c610
test al, al
je 0x478a96
mov ecx, ebx
mov byte [ebx + 0x295bc], 0
mov dword [ebx + 0x295e0], 1
call fcn.0045e200
mov ecx, esi
call fcn.004d6610
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.0047d150
mov edi, 1
jmp 0x478b19
mov ecx, esi
call fcn.004d6600
push eax
call fcn.004d65f0
push eax
mov ecx, ebx
call fcn.0054a160
test edi, edi
je 0x478b07
cmp byte [esp + 0x20], 0
mov byte [ebx + 0x295bc], 1
je 0x478b19
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0054a340
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.0054a390
mov ecx, 0xffffffc4
sub ecx, esi
add eax, ecx
mov ecx, ebx
push eax
call fcn.0054a3a0
sub eax, edi
mov ecx, ebx
push eax
call fcn.0054a610
mov edi, dword [esp + 0x14]
lea esi, [ebx + 0x26d94]
jmp 0x478b19
push 0
push 0
mov ecx, ebx
mov byte [ebx + 0x295bc], 0
call fcn.0054a610
jmp 0x478b1e
mov ecx, ebx
call fcn.0047a250
test al, al
jne 0x478b40
push str.CMSWindow::Cursors_Create_Error
call fcn.005326e0
add esp, 4
push str._CREATE_CURSOR_
jmp 0x4789fe
mov ecx, esi
call fcn.004d6630
test al, al
jne 0x478b56
lea ecx, [ebx + 0xe8]
call fcn.005c6560
mov ecx, esi
call fcn.004d6910
test al, al
jne 0x478b6b
call fcn.004d6940
mov byte [0x7006cc], al
mov ecx, esi
call fcn.004d6620
push eax
call fcn.004d6610
push eax
push edi
call fcn.004d6600
push eax
call fcn.004d65f0
push eax
mov ecx, ebx
call fcn.004783f0
test al, al
je 0x478a0e
call fcn.0053c540
mov ecx, esi
call fcn.004d6910
test al, al
je 0x478bbc
call fcn.00549720
lea ecx, [ebx + 0x25080]
test al, al
je 0x478bb8
push 0
jmp 0x478bcd
push 1
jmp 0x478bcd
mov ecx, esi
call fcn.004d6940
movzx eax, al
lea ecx, [ebx + 0x25080]
push eax
call fcn.00580dc0
push 1
mov ecx, ebx
call fcn.0054a630
cmp dword [ebx + 0x295e0], 0
je 0x478c00
push 0x40
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push 0
push 0
push 0
call fcn.0045e200
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.0045e200
push eax
lea ecx, [ebx + 0x1c]
call fcn.0054aa00
test al, al
je 0x478a0e
mov ecx, esi
call fcn.004d61f0
mov ecx, esi
call fcn.004d6640
mov ecx, ebx
test al, al
je 0x478c30
push 1
jmp 0x478c32
push 0
call fcn.0047a550
lea ecx, [ebx + 0x26d8c]
call fcn.0054d1d0
test al, al
jne 0x478c5d
push str.NetDevice::Create_failed
call fcn.005326e0
add esp, 4
push str._CREATE_NETWORK_
jmp 0x4789fe
call fcn.00549720
test al, al
jne 0x478c70
push 1
call fcn.0053c8a0
add esp, 4
lea ecx, [ebx + 0x1f854]
call fcn.00498f10
call fcn.0045b9b0
mov esi, dword [0x70ed94]
mov ecx, ebx
call fcn.0045e200
push eax
mov ecx, esi
call fcn.00496f70
mov ecx, dword [0x70ed94]
push 0
push 0x653f66
lea ecx, [ecx + 4]
call fcn.00552ad0
call fcn.004da810
lea ecx, [ebx + 0x7c]
call fcn.0054b2c0
push 0x20
call fcn.005539a0
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 + 0x295e4], 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.0053ac70
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.0053ac70
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret 0x14