Function at 0x4af620
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x7b7fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
jmp 0x4af63b
call fcn.00493200
mov ecx, eax
call fcn.00540a80
movzx eax, al
test eax, eax
je 0x4af657
mov dword [ebp - 0x28], 1
jmp 0x4af65e
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp + 0x18], ecx
mov byte [ebp - 0x1a], 0
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4af67c
mov byte [ebp - 0x1a], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x2c9d4], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x2c9d8], eax
cmp dword [ebp + 0x18], 0
je 0x4af6a0
mov byte [ebp - 0x19], 1
jmp 0x4af6a4
mov byte [ebp - 0x19], 0
movzx ecx, byte [ebp - 0x19]
push ecx
call fcn.004b2030
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x66
push 0x64
mov ecx, dword [ebp - 0x18]
call fcn.0057d400
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0057d300
movzx ecx, al
test ecx, ecx
jne 0x4af70e
push str.CMSWindow::Create_failed
call fcn.00567380
add esp, 4
push str.CREATE_WINDOW
mov edx, dword [sym.imp.python27.dll_PyExc_RuntimeError]
mov eax, dword [edx]
push eax
call dword [sym.imp.python27.dll_PyErr_SetString]
add esp, 8
xor al, al
jmp 0x4afb55
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540a40
movzx ecx, al
test ecx, ecx
je 0x4af732
call fcn.004b01f0
add eax, 4
mov ecx, eax
call fcn.005a0490
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540a80
movzx edx, al
test edx, edx
jne 0x4af7b3
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540a40
movzx eax, al
test eax, eax
jne 0x4af768
call fcn.004a76a0
movzx ecx, al
test ecx, ecx
je 0x4af7b3
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x2cae0], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2cb04], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540190
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00492950
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004b84a0
mov dword [ebp + 0x18], 1
jmp 0x4af84a
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540680
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.005408a0
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0057d250
cmp dword [ebp + 0x18], 0
je 0x4af834
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x2cae0], 1
movzx ecx, byte [ebp - 0x1a]
test ecx, ecx
je 0x4af832
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0057d3e0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0057d440
sub eax, 0x3c
sub eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0057d460
sub eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0057d6e0
jmp 0x4af84a
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x2cae0], 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0057d6e0
jmp 0x4af84f
mov ecx, dword [ebp - 0x18]
call 0x4b37e0
movzx eax, al
test eax, eax
jne 0x4af889
push str.CMSWindow::Cursors_Create_Error
call fcn.00567380
add esp, 4
push str._CREATE_CURSOR_
mov ecx, dword [sym.imp.python27.dll_PyExc_RuntimeError]
mov edx, dword [ecx]
push edx
call dword [sym.imp.python27.dll_PyErr_SetString]
add esp, 8
xor al, al
jmp 0x4afb55
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540940
movzx eax, al
test eax, eax
jne 0x4af8ac
mov ecx, dword [ebp - 0x18]
add ecx, 0xe8
call fcn.00634df0
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540900
movzx ecx, al
test ecx, ecx
jne 0x4af8d4
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540a20
mov byte [0x805e2c], al
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540590
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540190
push eax
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540680
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.005408a0
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004afb70
movzx eax, al
test eax, eax
jne 0x4af92a
xor al, al
jmp 0x4afb55
call fcn.00576150
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540900
movzx ecx, al
test ecx, ecx
je 0x4af974
call fcn.0058ae70
movzx edx, al
test edx, edx
je 0x4af962
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x2848c
call fcn.005db8c0
jmp 0x4af972
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x2848c
call fcn.005db8c0
jmp 0x4af994
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540a20
movzx eax, al
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2848c
call fcn.005db8c0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0057d710
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x2cb04], 0
je 0x4af9c9
push 0x40
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00492950
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x18]
call fcn.00492950
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
call fcn.00598a80
movzx ecx, al
test ecx, ecx
jne 0x4af9eb
xor al, al
jmp 0x4afb55
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.005401d0
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a274
call fcn.00540a00
movzx edx, al
test edx, edx
je 0x4afa22
push 1
mov ecx, dword [ebp - 0x18]
call fcn.004b39e0
mov ecx, dword [ebp - 0x18]
call fcn.004b3f20
jmp 0x4afa34
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004b39e0
mov ecx, dword [ebp - 0x18]
call fcn.004b3f20
mov ecx, dword [ebp - 0x18]
add ecx, 0x2a26c
call fcn.0059a750
movzx eax, al
test eax, eax
jne 0x4afa74
push str.NetDevice::Create_failed
call fcn.00567380
add esp, 4
push str._CREATE_NETWORK_
mov ecx, dword [sym.imp.python27.dll_PyExc_RuntimeError]
mov edx, dword [ecx]
push edx
call dword [sym.imp.python27.dll_PyErr_SetString]
add esp, 8
xor al, al
jmp 0x4afb55
call fcn.0058ae70
movzx eax, al
test eax, eax
jne 0x4afa8a
push 1
call fcn.00576590
add esp, 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x247e4
call fcn.004de6a0
call fcn.0048d670
mov ecx, dword [ebp - 0x18]
call fcn.00492950
push eax
call fcn.004b01f0
mov ecx, eax
call fcn.004dcae0
push 0
push 0x726211
call fcn.004b01f0
add eax, 4
mov ecx, eax
call fcn.0059fb80
call fcn.0049e6a0
mov ecx, eax
call fcn.00545a20
mov ecx, dword [ebp - 0x18]
add ecx, 0x7c
call fcn.0059b180
push 0x20
call fcn.0058dd70
add esp, 4
push 8
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00678c60
add esp, 0xc
mov dword [ebp - 0x24], 8
push 0
lea edx, [ebp - 0x24]
push edx
push 8
push 0x3a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x2cb08], ecx
mov edx, dword [ebp - 0x20]
and edx, 0xfffffff9
mov dword [ebp - 0x20], edx
push 0
lea eax, [ebp - 0x24]
push eax
push 8
push 0x3b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push str.d:_ymir_work_special_spheremap.jpg
push 0
call fcn.00573a80
add esp, 8
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.00573a80
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d40e
mov esp, ebp
pop ebp
ret 0x14