Function at 0x414ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x481ec6
mov eax, dword fs:[0]
push eax
mov eax, 0xaca0
call fcn.00451ab0
mov eax, dword [0x4a8f7c]
xor eax, esp
mov dword [esp + 0xac9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a8f7c]
xor eax, esp
push eax
lea eax, [esp + 0xacb4]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x6c]
call fcn.0041b0b0
xor ebp, ebp
lea ecx, [esp + 0x40]
mov dword [esp + 0xacbc], ebp
call fcn.0040e590
mov edi, dword [esp + 0xacc4]
mov byte [esp + 0xacbc], 1
cmp edi, 0xa
jae 0x415025
cmp dword [esi + 8], ebp
je 0x415025
mov eax, dword [esi + 0x72c]
cmp eax, ebp
je 0x415025
cmp dword [esi + 0x730], ebp
je 0x415025
cmp dword [esi + 0x738], ebp
je 0x415025
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [eax + 0x108]
mov dword [esi + 0x18], edi
call fcn.0040e720
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
mov ebx, dword [sym.imp.USER32.dll_SetRect]
push edx
push eax
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
call ebx
mov eax, dword [esi + 0x734]
push 0xff
lea edx, [esp + 0x18]
push edx
add eax, 0x108
mov ecx, edx
push eax
push ecx
mov ecx, dword [esi + 0x730]
add ecx, 0x108
call fcn.0040e7d0
test eax, eax
je 0x415025
push 0x40
cmp dword [esi + 0x14], ebp
jne 0x415051
push 0x80
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
call ebx
push 0x50
push 0x80
push 0x10
push ebp
lea eax, [esp + 0x24]
push eax
call ebx
mov edx, dword [esi + 0x738]
push 0xff
lea ecx, [esp + 0x28]
push ecx
add edx, 0x108
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, dword [esi + 0x730]
add ecx, 0x108
call fcn.0040e7d0
test eax, eax
jne 0x4150f5
lea ecx, [esp + 0x40]
mov byte [esp + 0xacbc], 0
call fcn.0040f370
lea ecx, [esp + 0x6c]
mov dword [esp + 0xacbc], 0xffffffff
call fcn.0041b9f0
xor eax, eax
jmp 0x415796
push 0x100
push ebp
push 0x80
lea ecx, [esp + 0x34]
push ecx
call ebx
push 0x50
push 0x80
push 0x10
push ebp
lea edx, [esp + 0x24]
push edx
call ebx
mov ecx, dword [esi + 0x738]
push 0xff
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x730]
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
call fcn.0040e7d0
test eax, eax
je 0x415025
push pe_nt_image_headers32
push 0x106
push 0xc0
push 0xb0
lea eax, [esp + 0x34]
push eax
call ebx
push 0x1d7
push 0x6d
push 0x1a7
push 0x17
lea ecx, [esp + 0x24]
push ecx
call ebx
mov eax, dword [esi + 0x738]
push 0xff
lea edx, [esp + 0x28]
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x41500c
mov eax, edi
and eax, 3
lea eax, [eax + eax*8]
add eax, eax
add eax, eax
add eax, eax
mov ecx, dword [esi + 0x738]
mov dword [esp + 0x24], eax
add eax, 0x48
mov dword [esp + 0x2c], eax
mov eax, edi
shr eax, 2
inc eax
shl eax, 6
mov dword [esp + 0x28], eax
add eax, 0x1c
mov edx, edi
shl edx, 4
mov dword [esp + 0x30], eax
sub edx, edi
lea eax, [edx + edx + 0x5e]
mov dword [esp + 0x18], eax
add eax, 0x1c
push 0xff
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x730]
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
mov dword [esp + 0x24], 0x1d
mov dword [esp + 0x2c], 0x65
call fcn.0040e7d0
lea ecx, [esp + 0x40]
test eax, eax
je 0x415029
mov eax, dword [esi + 4]
push 0x5a
push 0x78
push eax
call fcn.0040f380
test eax, eax
je 0x415025
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x44]
call fcn.0040e720
mov ecx, esi
call fcn.00414de0
lea ecx, [edi + edi*4]
add ecx, ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
jmp 0x4151d8
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov eax, 0x66666667
imul ebp
imul ebp, ebp, 0x76
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
imul eax, eax, 0x24e
sub ebp, eax
imul edi, edi, 0x150
mov dword [esp + 0x3c], ebp
push 0x158
cmp dword [esp + 0x9c], ecx
jne 0x41527c
push pe_nt_image_headers32
push 0x140
push 0xc0
lea edx, [esp + 0x34]
push edx
call ebx
mov ecx, dword [esi + 0x738]
lea eax, [edi + 0x8c]
mov dword [esp + 0x14], eax
add eax, 0x30
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0xe]
mov dword [esp + 0x18], eax
add eax, 0x18
push 0xff
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x730]
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
call fcn.0040ea20
test eax, eax
je 0x415025
jmp 0x415492
push 0xc0
push 0x140
push 0xa0
lea eax, [esp + 0x34]
push eax
call ebx
lea eax, [edi + 0x88]
mov dword [esp + 0x14], eax
add eax, 0x20
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x738]
push 0xff
add ebp, 0xe
lea edx, [esp + 0x28]
lea ecx, [ebp + 0x18]
mov dword [esp + 0x24], ecx
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x730]
add ecx, 0x108
mov dword [esp + 0x28], ebp
call fcn.0040ea20
test eax, eax
je 0x415025
mov eax, dword [esi + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
lea ecx, [eax + edx*2 + 1]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 4
lea ecx, [edx + 0x10]
lea eax, [edi + 0xa1]
mov dword [esp + 0x14], eax
sub eax, edx
add eax, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x738]
push 0xff
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
add ecx, 0x108
mov ebx, 0x18
push eax
lea edx, [ebx + ebp]
push ecx
mov ecx, dword [esi + 0x730]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
mov dword [esp + 0x38], 0x140
mov dword [esp + 0x40], 0x158
mov dword [esp + 0x28], ebp
call fcn.0040ea20
test eax, eax
je 0x415025
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x34]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 + 1]
xor edx, edx
mov ecx, 0x64
div ecx
mov eax, 0xcccccccd
push 0xff
mov dword [esp + 0x2c], 0x140
mov dword [esp + 0x34], 0x158
mov dword [esp + 0x1c], ebp
mul edx
shr edx, 3
shl edx, 4
lea ecx, [edx + 0x10]
lea eax, [edi + 0xab]
mov dword [esp + 0x18], eax
sub eax, edx
add eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x738]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
lea edx, [ebx + ebp]
push ecx
mov ecx, dword [esi + 0x730]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
call fcn.0040ea20
test eax, eax
je 0x415025
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x34]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 + 1]
xor edx, edx
mov ecx, 0xa
div ecx
lea eax, [edi + 0xb5]
mov dword [esp + 0x14], eax
push 0xff
add ebx, ebp
mov dword [esp + 0x2c], 0x140
mov dword [esp + 0x34], 0x158
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebx
shl edx, 4
lea ecx, [edx + 0x10]
sub eax, edx
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x738]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], ecx
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x730]
add ecx, 0x108
call fcn.0040ea20
test eax, eax
je 0x415025
mov ebx, dword [sym.imp.USER32.dll_SetRect]
mov ebp, dword [esp + 0x3c]
push 0x100
lea edx, [esp + 0xabb4]
push 0
push edx
call fcn.00451810
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x40]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*2 + 1]
push edx
lea eax, [esp + 0xabc0]
push str.save_sj_save_03d.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0xabb4]
push edx
mov ecx, esi
call fcn.00414bf0
cmp eax, 1
jne 0x41574f
push 0x5a
push 0x78
lea eax, [esp + 0x2f8]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040e600
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x34]
push eax
call ebx
lea eax, [edi + 0x14a]
mov dword [esp + 0x14], eax
add eax, 0x78
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x13]
push 0xff
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
add eax, 0x5a
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x730]
lea edx, [esp + 0x48]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x20]
push eax
add ecx, 0x108
call fcn.0040e7d0
test eax, eax
je 0x415025
mov edx, dword [esi + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x20
push 0x140
push edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0x12
mov dword [esp + 0x70], 0x48333c
mov dword [esp + 0x78], 0xffffffff
call fcn.0041ba00
test eax, eax
je 0x415025
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x70]
call fcn.0041b640
test eax, eax
je 0x415025
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [edi + 0x90]
push edx
push 0x140
push 0x18
push 0xb2
lea ecx, [esp + 0x80]
call fcn.0041b560
push eax
mov ecx, esi
call fcn.00414c70
test eax, eax
je 0x415025
mov ecx, dword [esi + 4]
lea eax, [esp + 0x60]
push eax
push 0x40
push 0x140
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0x10
mov dword [esp + 0x70], 0x48333c
mov dword [esp + 0x78], 0x12
call fcn.0041ba00
test eax, eax
je 0x415025
lea edx, [esp + 0x1b8]
push edx
lea ecx, [esp + 0x70]
call fcn.0041b640
test eax, eax
je 0x415025
add ebp, 0x48
push ebp
lea eax, [edi + 0x92]
push eax
push 0x140
push 0x28
push 0xb2
lea ecx, [esp + 0x80]
call fcn.0041b560
push eax
mov ecx, esi
call fcn.00414c70
test eax, eax
je 0x415025
mov edx, dword [esi + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x20
push 0x140
push edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0x10
mov dword [esp + 0x70], 0x48333c
call fcn.0041ba00
test eax, eax
je 0x415025
push 0x100
lea eax, [esp + 0xabb4]
push 0
push eax
call fcn.00451810
movzx ecx, word [esp + 0x2ce]
movzx edx, word [esp + 0x2cc]
movzx eax, word [esp + 0x2ca]
push ecx
movzx ecx, word [esp + 0x2ca]
push edx
push eax
movzx eax, word [esp + 0x2d0]
push ecx
cdq
mov ecx, 0x64
idiv ecx
push edx
lea edx, [esp + 0xabd0]
push str._02d__02d__02d__02d:_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
lea eax, [esp + 0xabb0]
push eax
lea ecx, [esp + 0x70]
call fcn.0041b640
test eax, eax
je 0x415025
mov ecx, dword [esp + 0x3c]
push ecx
add edi, 0xd0
push edi
push 0x140
push 0x10
push 0x7c
lea ecx, [esp + 0x80]
call fcn.0041b560
push eax
mov ecx, esi
call fcn.00414c70
test eax, eax
je 0x415025
mov eax, dword [esp + 0x34]
inc dword [esp + 0x38]
inc eax
cmp eax, 0xa
mov dword [esp + 0x34], eax
jl 0x4151d0
lea ecx, [esp + 0x40]
mov dword [esi + 0xc], 1
mov byte [esp + 0xacbc], 0
call fcn.0040f370
lea ecx, [esp + 0x6c]
mov dword [esp + 0xacbc], 0xffffffff
call fcn.0041b9f0
mov eax, 1
mov ecx, dword [esp + 0xacb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac9c]
xor ecx, esp
call fcn.00451800
add esp, 0xacac
ret 4