Function at 0x46fc60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x69a450]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x46fc7e
mov ecx, dword [0x6f0850]
call fcn.004cb8f0
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 + 0x276d4], eax
mov eax, dword [ebp + 0x14]
push 0x66
mov dword [esp + 0x24], ecx
mov ecx, ebx
push 0x64
mov dword [ebx + 0x276d8], eax
call fcn.0053c300
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [esp + 0x18]
test edi, edi
push eax
setne cl
call fcn.0046fc50
push eax
push 0
push 4
push esi
mov ecx, ebx
call fcn.0053c240
test al, al
jne 0x46fd34
push str.CMSWindow::Create_failed
call fcn.00525b10
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.005c46a4
mov esp, ebp
pop ebp
ret 0x14
lea esi, [ebx + 0x24fc0]
mov ecx, esi
call fcn.004cba00
test al, al
je 0x46fd53
mov ecx, dword [0x6f0868]
lea ecx, [ecx + 4]
call fcn.005450f0
mov ecx, esi
call fcn.004cb8f0
test al, al
jne 0x46fda6
call fcn.004cba00
test al, al
jne 0x46fd70
call fcn.00469450
test al, al
je 0x46fda6
mov ecx, ebx
mov byte [ebx + 0x277e0], 0
mov dword [ebx + 0x27804], 1
call fcn.0045dcb0
mov ecx, esi
call fcn.004cb6d0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.00474310
mov edi, 1
jmp 0x46fe29
mov ecx, esi
call fcn.004cb6c0
push eax
call fcn.004cb6b0
push eax
mov ecx, ebx
call fcn.0053c1d0
test edi, edi
je 0x46fe17
cmp byte [esp + 0x20], 0
mov byte [ebx + 0x277e0], 1
je 0x46fe29
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0053c2e0
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.0053c330
mov ecx, 0xffffffc4
sub ecx, esi
add eax, ecx
mov ecx, ebx
push eax
call fcn.0053c340
sub eax, edi
mov ecx, ebx
push eax
call fcn.0053c5a0
mov edi, dword [esp + 0x14]
lea esi, [ebx + 0x24fc0]
jmp 0x46fe29
push 0
push 0
mov ecx, ebx
mov byte [ebx + 0x277e0], 0
call fcn.0053c5a0
jmp 0x46fe2e
mov ecx, ebx
call fcn.00471520
test al, al
jne 0x46fe50
push str.CMSWindow::Cursors_Create_Error
call fcn.00525b10
add esp, 4
push str._CREATE_CURSOR_
jmp 0x46fd0e
mov ecx, esi
call fcn.004cb6f0
test al, al
jne 0x46fe66
lea ecx, [ebx + 0xe8]
call fcn.005b7920
mov ecx, esi
call fcn.004cb9c0
test al, al
jne 0x46fe7b
call fcn.004cb9f0
mov byte [0x6e2b8c], al
mov ecx, esi
call fcn.004cb6e0
push eax
call fcn.004cb6d0
push eax
push edi
call fcn.004cb6c0
push eax
call fcn.004cb6b0
push eax
mov ecx, ebx
call fcn.0046f700
test al, al
je 0x46fd1e
call fcn.0052f6f7
mov ecx, esi
call fcn.004cb9c0
test al, al
je 0x46fecc
call fcn.0053b790
lea ecx, [ebx + 0x232c4]
test al, al
je 0x46fec8
push 0
jmp 0x46fedd
push 1
jmp 0x46fedd
mov ecx, esi
call fcn.004cb9f0
movzx eax, al
lea ecx, [ebx + 0x232c4]
push eax
call fcn.00573140
push 1
mov ecx, ebx
call fcn.0053c5c0
cmp dword [ebx + 0x27804], 0
je 0x46ff10
push 0x40
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push 0
push 0
push 0
call fcn.0045dcb0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.0045dcb0
push eax
lea ecx, [ebx + 0x1c]
call fcn.0053c970
test al, al
je 0x46fd1e
mov ecx, esi
call fcn.004cb2b0
mov ecx, esi
call fcn.004cb700
mov ecx, ebx
test al, al
je 0x46ff40
push 1
jmp 0x46ff42
push 0
call fcn.00471820
lea ecx, [ebx + 0x24fb8]
call fcn.0053f150
test al, al
jne 0x46ff6d
push str.NetDevice::Create_failed
call fcn.00525b10
add esp, 4
push str._CREATE_NETWORK_
jmp 0x46fd0e
call fcn.0053b790
test al, al
jne 0x46ff80
push 1
call fcn.0052f969
add esp, 4
lea ecx, [ebx + 0x20b58]
call fcn.00490200
call fcn.0045b430
mov esi, dword [0x6f0868]
mov ecx, ebx
call fcn.0045dcb0
push eax
mov ecx, esi
call fcn.0048e060
mov ecx, dword [0x6f0868]
push 0
push 0x63aafe
lea ecx, [ecx + 4]
call fcn.00544a50
call fcn.004cf6a0
lea ecx, [ebx + 0x7c]
call fcn.0053d230
push 0x20
call fcn.00545920
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 + 0x27808], 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.0052e33b
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.0052e33b
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c46a4
mov esp, ebp
pop ebp
ret 0x14