Function at 0x4705b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x4705ce
mov ecx, dword [0x6f86d0]
call fcn.004d0950
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 + 0x23890], eax
mov eax, dword [ebp + 0x14]
push 0x66
mov dword [esp + 0x24], ecx
mov ecx, ebx
push 0x64
mov dword [ebx + 0x23894], eax
call fcn.00542b80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [esp + 0x18]
test edi, edi
push eax
setne cl
call fcn.004705a0
push eax
push 0
push 4
push esi
mov ecx, ebx
call fcn.00542ac0
test al, al
jne 0x470684
push str.CMSWindow::Create_failed
call fcn.0052ab40
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.005c9914
mov esp, ebp
pop ebp
ret 0x14
lea esi, [ebx + 0x2117c]
mov ecx, esi
call fcn.004d0a90
test al, al
je 0x4706a3
mov ecx, dword [0x6f86ec]
lea ecx, [ecx + 4]
call fcn.0054b9f0
mov ecx, esi
call fcn.004d0950
test al, al
jne 0x4706f6
call fcn.004d0a90
test al, al
jne 0x4706c0
call fcn.00469e50
test al, al
je 0x4706f6
mov ecx, ebx
mov byte [ebx + 0x2399c], 0
mov dword [ebx + 0x239c0], 1
call fcn.0045ddd0
mov ecx, esi
call fcn.004d0730
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.00474d90
mov edi, 1
jmp 0x470779
mov ecx, esi
call fcn.004d0720
push eax
call fcn.004d0710
push eax
mov ecx, ebx
call fcn.00542a50
test edi, edi
je 0x470767
cmp byte [esp + 0x20], 0
mov byte [ebx + 0x2399c], 1
je 0x470779
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.00542b60
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.00542bb0
mov ecx, 0xffffffc4
sub ecx, esi
add eax, ecx
mov ecx, ebx
push eax
call fcn.00542bc0
sub eax, edi
mov ecx, ebx
push eax
call fcn.00542e20
mov edi, dword [esp + 0x14]
lea esi, [ebx + 0x2117c]
jmp 0x470779
push 0
push 0
mov ecx, ebx
mov byte [ebx + 0x2399c], 0
call fcn.00542e20
jmp 0x47077e
mov ecx, ebx
call fcn.00471ed0
test al, al
jne 0x4707a0
push str.CMSWindow::Cursors_Create_Error
call fcn.0052ab40
add esp, 4
push str._CREATE_CURSOR_
jmp 0x47065e
mov ecx, esi
call fcn.004d0750
test al, al
jne 0x4707b6
lea ecx, [ebx + 0xe8]
call fcn.005bcd30
mov ecx, esi
call fcn.004d0a50
test al, al
jne 0x4707cb
call fcn.004d0a80
mov byte [0x6e9dec], al
mov ecx, esi
call fcn.004d0740
push eax
call fcn.004d0730
push eax
push edi
call fcn.004d0720
push eax
call fcn.004d0710
push eax
mov ecx, ebx
call fcn.00470050
test al, al
je 0x47066e
call fcn.00534be0
mov ecx, esi
call fcn.004d0a50
test al, al
je 0x47081c
call fcn.00541e00
lea ecx, [ebx + 0x1f3a8]
test al, al
je 0x470818
push 0
jmp 0x47082d
push 1
jmp 0x47082d
mov ecx, esi
call fcn.004d0a80
movzx eax, al
lea ecx, [ebx + 0x1f3a8]
push eax
call fcn.00579030
push 1
mov ecx, ebx
call fcn.00542e40
cmp dword [ebx + 0x239c0], 0
je 0x470860
push 0x40
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push 0
push 0
push 0
call fcn.0045ddd0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.0045ddd0
push eax
lea ecx, [ebx + 0x1c]
call fcn.005431f0
test al, al
je 0x47066e
mov ecx, esi
call fcn.004d0310
mov ecx, esi
call fcn.004d0760
mov ecx, ebx
test al, al
je 0x470890
push 1
jmp 0x470892
push 0
call fcn.004721d0
lea ecx, [ebx + 0x21174]
call fcn.00545a50
test al, al
jne 0x4708bd
push str.NetDevice::Create_failed
call fcn.0052ab40
add esp, 4
push str._CREATE_NETWORK_
jmp 0x47065e
call fcn.00541e00
test al, al
jne 0x4708d0
push 1
call fcn.00534f40
add esp, 4
lea ecx, [ebx + 0x1c31c]
call fcn.00491810
call fcn.0045b580
mov esi, dword [0x6f86ec]
mov ecx, ebx
call fcn.0045ddd0
push eax
mov ecx, esi
call fcn.0048f5c0
mov ecx, dword [0x6f86ec]
push 0
push 0x641586
lea ecx, [ecx + 4]
call fcn.0054b350
call fcn.004d4dc0
lea ecx, [ebx + 0x7c]
call fcn.00543ab0
push 0x20
call fcn.0054c1e0
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 + 0x239c4], 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.005331e0
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.005331e0
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c9914
mov esp, ebp
pop ebp
ret 0x14