Function at 0x506d60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x78d5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
jmp 0x506d7e
call fcn.0046bf90
mov ecx, eax
call fcn.005162a0
movzx eax, al
test eax, eax
je 0x506d9a
mov dword [ebp - 0x28], 1
jmp 0x506da1
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 0x506dbf
mov byte [ebp - 0x1a], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x415ec], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x415f0], eax
cmp dword [ebp + 0x18], 0
je 0x506de3
mov byte [ebp - 0x19], 1
jmp 0x506de7
mov byte [ebp - 0x19], 0
movzx ecx, byte [ebp - 0x19]
push ecx
call fcn.00509830
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x66
push 0x64
mov ecx, dword [ebp - 0x18]
call fcn.005900b0
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.0058fff0
movzx ecx, al
test ecx, ecx
jne 0x506e51
push str.CMSWindow::Create_failed
call fcn.00566650
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 0x507368
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516340
movzx ecx, al
test ecx, ecx
je 0x506e75
call fcn.0050a650
add eax, 4
mov ecx, eax
call fcn.00594740
mov ecx, dword [ebp - 0x18]
add ecx, 0x8a8
call fcn.00531db0
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.005162a0
movzx edx, al
test edx, edx
jne 0x506f10
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516340
movzx eax, al
test eax, eax
jne 0x506eb9
call fcn.0051f810
movzx ecx, al
test ecx, ecx
je 0x506f10
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x416f8], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x4171c], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516240
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
call fcn.00569030
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00512d30
mov dword [ebp + 0x18], 1
jmp 0x507030
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516220
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516200
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0058ff70
cmp dword [ebp + 0x18], 0
je 0x50701a
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x416f8], 1
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516200
mov esi, eax
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea esi, [esi + eax*2]
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea esi, [esi + eax*2]
push 0x20
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea edx, [esi + eax*2]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516220
mov esi, eax
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea esi, [esi + eax*2]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea esi, [esi + eax*2]
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea esi, [esi + eax*2]
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add esi, eax
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x40]
shr eax, 1
mov ecx, dword [ebp - 0x44]
shr ecx, 1
sub eax, ecx
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x48]
shr edx, 1
mov eax, dword [ebp - 0x4c]
shr eax, 1
sub edx, eax
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.005903e0
jmp 0x507030
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x416f8], 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.005903e0
jmp 0x507035
mov ecx, dword [ebp - 0x18]
call 0x50c5e0
movzx ecx, al
test ecx, ecx
jne 0x50706f
push str.CMSWindow::Cursors_Create_Error
call fcn.00566650
add esp, 4
push str._CREATE_CURSOR_
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 0x507368
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516360
movzx ecx, al
test ecx, ecx
jne 0x507092
mov ecx, dword [ebp - 0x18]
add ecx, 0xe8
call fcn.0060c3d0
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516380
movzx edx, al
test edx, edx
jne 0x5070ba
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.005163a0
mov byte [0x7df890], al
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516260
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516240
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516220
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516200
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00507380
movzx edx, al
test edx, edx
jne 0x507128
xor al, al
jmp 0x507368
call fcn.005706c4
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516380
movzx eax, al
test eax, eax
je 0x50717d
call fcn.0057a280
movzx ecx, al
test ecx, ecx
je 0x507166
mov edx, dword [ebp - 0x18]
add edx, 0x3e43c
mov dword [ebp - 0x68], edx
push 0
mov ecx, dword [ebp - 0x68]
call fcn.005c7660
jmp 0x50717b
mov eax, dword [ebp - 0x18]
add eax, 0x3e43c
mov dword [ebp - 0x6c], eax
push 1
mov ecx, dword [ebp - 0x6c]
call fcn.005c7660
jmp 0x5071a3
mov ecx, dword [ebp - 0x18]
add ecx, 0x3e43c
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.005163a0
movzx edx, al
push edx
mov ecx, dword [ebp - 0x70]
call fcn.005c7660
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00590400
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4171c], 0
je 0x5071d8
push 0x40
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00569030
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x18]
add eax, 0x1c
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x18]
call fcn.00569030
push eax
mov ecx, dword [ebp - 0x74]
call fcn.00587a20
movzx ecx, al
test ecx, ecx
jne 0x507200
xor al, al
jmp 0x507368
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516730
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edb4
call fcn.00516280
movzx edx, al
test edx, edx
je 0x50722f
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0050c990
jmp 0x507239
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0050c990
mov ecx, dword [ebp - 0x18]
add ecx, 0x3edac
call fcn.00590610
movzx eax, al
test eax, eax
jne 0x507279
push str.NetDevice::Create_failed
call fcn.00566650
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 0x507368
call fcn.0057a280
movzx eax, al
test eax, eax
jne 0x50728f
push 1
call fcn.005708f8
add esp, 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x38a94
call fcn.004983b0
call fcn.0054bbb0
call fcn.0050a650
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x18]
call fcn.00569030
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00513110
call fcn.0050a650
add eax, 4
mov dword [ebp - 0x80], eax
push 0
push 0x6f5f5d
mov ecx, dword [ebp - 0x80]
call fcn.00594080
call fcn.0046bfa0
mov ecx, eax
call fcn.004ff270
mov ecx, dword [ebp - 0x18]
add ecx, 0x7c
call fcn.00590e40
push 0x20
call fcn.00586260
add esp, 4
push 8
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00653fd0
add esp, 0xc
mov dword [ebp - 0x24], 8
push 0
lea eax, [ebp - 0x24]
push eax
push 8
push 0x3a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x41720], edx
mov eax, dword [ebp - 0x20]
and eax, 0xfffffff9
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x24]
push ecx
push 8
push 0x3b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push str.d:_ymir_work_special_spheremap.jpg
push 0
call fcn.0056ef67
add esp, 8
push str.d:_ymir_work_special_spheremap01.jpg
push 1
call fcn.0056ef67
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0061abe2
mov esp, ebp
pop ebp
ret 0x14