Function at 0x473870
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [0x6a6338]
push edi
call fcn.004d9bb0
xor ecx, ecx
mov byte [ebp - 0x15], 0
test al, al
push esi
setne cl
push 0
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_FindWindowA]
movzx ecx, byte [ebp - 0x15]
test eax, eax
mov eax, dword [ebp + 0x10]
mov edx, 1
cmovne ecx, edx
mov dword [ebx + 0x2569c], eax
mov eax, dword [ebp + 0x14]
push 0x66
mov dword [ebp - 0x28], ecx
mov ecx, ebx
push 0x64
mov dword [ebx + 0x256a0], eax
call fcn.00519d80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [ebp - 0x1c]
push eax
push edi
call fcn.00477470
add esp, 4
mov ecx, ebx
push eax
push 0
push 4
push esi
call fcn.00519cc0
test al, al
jne 0x473931
push str.CMSWindow::Create_failed
call fcn.004f6e90
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
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret 0x14
lea esi, [ebx + 0x22f3c]
mov ecx, esi
call fcn.004d9b90
test al, al
je 0x473950
mov ecx, dword [0x6ab7d8]
lea ecx, [ecx + 4]
call fcn.0051f8a0
lea ecx, [ebx + 0x810]
call fcn.004aa040
mov ecx, esi
call fcn.004d9bb0
test al, al
jne 0x4739a6
mov ecx, esi
call fcn.004d9b90
test al, al
je 0x4739a6
mov ecx, esi
mov byte [ebx + 0x257a8], 0
mov dword [ebx + 0x257cc], 1
call fcn.004d9680
push eax
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
call fcn.004618d0
push eax
mov ecx, ebx
call fcn.0047c110
mov edi, 1
jmp 0x473a24
mov ecx, esi
call fcn.004d9990
push eax
mov ecx, esi
call fcn.004d9ac0
push eax
mov ecx, ebx
call fcn.00519c50
test edi, edi
je 0x473a12
cmp byte [ebp - 0x28], 0
mov byte [ebx + 0x257a8], 1
je 0x473a24
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00519d60
mov edi, dword [ebp - 0xc]
mov ecx, ebx
mov esi, dword [ebp - 8]
sub edi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x10]
call fcn.00519db0
mov ecx, 0xffffffc4
sub ecx, esi
add eax, ecx
mov ecx, ebx
push eax
call fcn.00519dc0
sub eax, edi
mov ecx, ebx
push eax
call fcn.0051a0e0
mov edi, dword [ebp - 0x1c]
lea esi, [ebx + 0x22f3c]
jmp 0x473a24
push 0
push 0
mov ecx, ebx
mov byte [ebx + 0x257a8], 0
call fcn.0051a0e0
mov ecx, ebx
call fcn.00478ae0
test al, al
jne 0x473a43
push str.CMSWindow::Cursors_Create_Error
call fcn.004f6e90
push str._CREATE_CURSOR_
jmp 0x47390c
mov ecx, esi
call fcn.004d9b30
test al, al
jne 0x473a59
lea ecx, [ebx + 0xe8]
call fcn.0058dee0
mov ecx, esi
call fcn.004d9b00
test al, al
jne 0x473a70
mov ecx, esi
call fcn.004d9b80
mov byte [0x6e0b44], al
mov ecx, esi
call fcn.004d98c0
push eax
mov ecx, esi
call fcn.004d9680
push eax
push edi
mov ecx, esi
call fcn.004d9990
push eax
mov ecx, esi
call fcn.004d9ac0
push eax
mov ecx, ebx
call fcn.00473c30
test al, al
je 0x47391c
call fcn.005020f0
mov ecx, esi
call fcn.004d9b00
test al, al
je 0x473abd
call fcn.0050f650
test al, al
sete byte [ebp - 0x1c]
jmp 0x473ac7
mov ecx, esi
call fcn.004d9b80
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x2263c]
call fcn.005484e0
push 1
mov ecx, ebx
call fcn.0051a100
cmp dword [ebx + 0x257cc], 0
je 0x473b03
push 0x40
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push 0
push 0
push 0
call fcn.004618d0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.004618d0
push eax
lea ecx, [ebx + 0x1c]
call fcn.0051a490
test al, al
je 0x47391c
mov ecx, esi
call fcn.004d96a0
mov ecx, esi
call fcn.004d9b70
xor ecx, ecx
test al, al
setne cl
push ecx
mov ecx, ebx
call fcn.00478d20
lea ecx, [ebx + 0x22f34]
call fcn.0051bbd0
test al, al
jne 0x473b5b
push str.NetDevice::Create_failed
call fcn.004f6e90
push str._CREATE_NETWORK_
jmp 0x47390c
call fcn.0050f650
test al, al
jne 0x473b6e
push 1
call fcn.005023f0
add esp, 4
lea ecx, [ebx + 0x1d020]
call fcn.00497b10
call fcn.0045e460
mov ecx, ebx
call fcn.004618d0
mov ecx, dword [0x6ab7d8]
push eax
call fcn.004966d0
mov ecx, dword [0x6ab7d8]
push 0
push 0x664d84
lea ecx, [ecx + 4]
call fcn.0051f1e0
mov ecx, dword [0x6ab790]
call fcn.004dd080
lea ecx, [ebx + 0x7c]
call fcn.0051c280
push 0x20
call fcn.00511bd0
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x24]
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 8
push 0
push eax
push 8
push 0x3a
call esi
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x257d0], eax
and eax, 0xfffffff9
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 8
push 0x3b
call esi
push str.d:_ymir_work_special_spheremap.jpg
push 0
call fcn.004fff90
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.004fff90
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0059df60
mov esp, ebp
pop ebp
ret 0x14