Function at 0x494c20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x75868c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
jmp 0x494c3b
mov ecx, dword [0x7e0f8c]
call fcn.00511220
mov esi, dword [ebp + 0xc]
mov bl, al
push esi
movzx eax, bl
xor bh, bh
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp + 0x10]
mov edx, 1
movzx ecx, bh
cmovne ecx, edx
push 0x66
mov dword [ebp - 0x20], ecx
mov ecx, edi
mov dword [edi + 0x3cc78], eax
mov eax, dword [ebp + 0x14]
push 0x64
mov dword [edi + 0x3cc7c], eax
call fcn.0056f550
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
mov cl, bl
call fcn.00494c10
push eax
push 0
push 4
push esi
mov ecx, edi
call fcn.0056f490
test al, al
jne 0x494ce3
push str.CMSWindow::Create_failed
call fcn.00555e70
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 [ebp - 4]
xor ecx, ebp
call fcn.00617a25
mov esp, ebp
pop ebp
ret 0x14
lea ebx, [edi + 0x3a3b8]
mov ecx, ebx
call fcn.00511360
test al, al
je 0x494d02
mov ecx, dword [0x7e0fc4]
lea ecx, [ecx + 4]
call fcn.005889b0
push 0
call fcn.004d9cb0
mov ecx, ebx
call fcn.00511220
test al, al
jne 0x494d5d
call fcn.00511360
test al, al
jne 0x494d26
call fcn.0048e500
test al, al
je 0x494d5d
mov ecx, ebx
mov byte [edi + 0x3cd84], 0
mov dword [edi + 0x3cda8], 1
call fcn.00510f40
mov ecx, edi
mov esi, eax
call fcn.0047e2d0
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.00499ce0
mov dword [ebp - 0x1c], 1
jmp 0x494dcf
mov ecx, ebx
call fcn.00510f30
push eax
call fcn.00510f20
push eax
mov ecx, edi
call fcn.0056f410
cmp dword [ebp - 0x1c], 0
je 0x494dbd
cmp byte [ebp - 0x20], 0
mov byte [edi + 0x3cd84], 1
je 0x494dcf
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0056f530
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.0056f580
mov ecx, dword [ebp - 0x18]
mov edi, 0xffffffc4
sub edi, esi
add edi, eax
call fcn.0056f590
mov ecx, dword [ebp - 0x18]
sub eax, ebx
push edi
push eax
jmp 0x494dca
push 0
mov byte [edi + 0x3cd84], 0
mov ecx, edi
push 0
call fcn.0056f8c0
jmp 0x494dd4
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00496ac0
test al, al
jne 0x494df9
push str.CMSWindow::Cursors_Create_Error
call fcn.00555e70
add esp, 4
push str._CREATE_CURSOR_
jmp 0x494cbe
lea ecx, [ebx + 0x3a3b8]
call fcn.00510f60
test al, al
jne 0x494e19
lea ecx, [ebx + 0x110]
call fcn.006087a0
lea ecx, [ebx + 0x3a3b8]
call fcn.00511320
test al, al
jne 0x494e2c
call fcn.00511350
mov byte [0x79cc20], al
call fcn.00510f50
mov edi, eax
call fcn.00510f40
mov esi, eax
call fcn.00510f30
mov edx, eax
call fcn.00510f20
push edi
push esi
push dword [ebp - 0x1c]
mov ecx, ebx
push edx
push eax
call fcn.00494200
test al, al
je 0x494cce
call fcn.0055ff80
lea ecx, [ebx + 0x3a3b8]
call fcn.00511320
test al, al
je 0x494e80
call fcn.0056eb30
test al, al
sete byte [ebp - 0x20]
push dword [ebp - 0x20]
jmp 0x494e8f
lea ecx, [ebx + 0x3a3b8]
call fcn.00511350
movzx eax, al
push eax
lea ecx, [ebx + 0x378fc]
call fcn.005baa90
push 1
mov ecx, ebx
call fcn.0056f8e0
cmp dword [ebx + 0x3cda8], 0
je 0x494ec8
push 0x40
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push 0
push 0
push 0
call fcn.0047e2d0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.0047e2d0
push eax
lea ecx, [ebx + 0x1c]
call fcn.00572060
test al, al
je 0x494cce
lea ecx, [ebx + 0x3a3b8]
call fcn.00510b90
lea ecx, [ebx + 0x3a3b8]
call fcn.00510f70
movzx eax, al
mov ecx, ebx
push eax
call fcn.00496e50
lea ecx, [ebx + 0x3a3b0]
call fcn.005818d0
test al, al
jne 0x494f27
push str.NetDevice::Create_failed
call fcn.00555e70
add esp, 4
push str._CREATE_NETWORK_
jmp 0x494cbe
call fcn.0056eb30
test al, al
jne 0x494f3a
push 1
call fcn.00560280
add esp, 4
lea ecx, [ebx + 0x2c874]
call fcn.004b8440
call fcn.0047be30
mov esi, dword [0x7e0fc4]
mov ecx, ebx
call fcn.0047e2d0
push eax
mov ecx, esi
call fcn.004b5f10
mov ecx, dword [0x7e0fc4]
push 0
push 0x6eed93
lea ecx, [ecx + 4]
call fcn.005882f0
mov ecx, dword [0x7e0f9c]
call fcn.00518f10
lea ecx, [ebx + 0xa4]
call fcn.005718e0
push 0x20
call fcn.00572600
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 + 0x3cdac], eax
and eax, 0xfffffff9
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 8
push 0x3b
call esi
push str.d:_ymir_work_special_spheremap.jpg
push 0
call fcn.005619b0
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.005619b0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00617a25
mov esp, ebp
pop ebp
ret 0x14