Function at 0x40c1a0
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x70], 0xf0df
mov dword [ebp - 0xc], 0x8920
mov dword [ebp - 0x10], 0xd9b0
mov dword [ebp - 0x14], 0x1d54
mov dword [ebp - 8], 0x5556
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x4c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x24], 0
jmp 0x40c227
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x40c86f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x1c], 1
cmp byte [ebp - 1], 0
jne 0x40c254
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414564
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041b9e0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040bde0
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x40c83c
mov edx, dword [0x4319f0]
mov dword [ebp - 0x2c], edx
jmp 0x40c2da
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0xc]
jg 0x40c7f9
imul eax, dword [ebp - 8], 0x10280
cdq
idiv dword [ebp - 0x10]
mov eax, edx
cdq
idiv dword [ebp - 8]
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x10]
and eax, dword [ebp - 0x10]
mov dword [0x4319a4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
imul edx, dword [ebp - 0x14], 0x41f0
add edx, dword [ebp - 0xc]
or edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [0x431a18]
mov dword [ebp - 0x30], eax
jmp 0x40c33b
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 8]
jne 0x40c79d
mov eax, dword [0x431ab0]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10baa
ja 0x40c380
cmp dword [ebp - 0x20], 0x10baa
je 0x40c392
cmp dword [ebp - 0x20], 0x509e
je 0x40c4a3
cmp dword [ebp - 0x20], 0x8d5a
je 0x40c565
jmp 0x40c798
cmp dword [ebp - 0x20], 0x1361b
je 0x40c57f
jmp 0x40c798
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401b20
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x14]
mov eax, edx
cdq
idiv dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov ecx, dword [ebp - 8]
sar edx, cl
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0xc]
sub ecx, eax
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp - 8]
add esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cdq
mov ecx, 0xe1e4
idiv ecx
add edx, dword [ebp - 0xc]
mov ecx, edx
shl esi, cl
mov dword [0x4319f0], esi
push str._tZ_dAMpTI_game_Ixp_cv
call fcn.004010e0
add esp, 4
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 8]
mov ecx, eax
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0x10]
add ecx, eax
mov dword [0x4319a0], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.UxTheme.dll_GetThemePropertyOrigin]
mov dword [ebp - 8], eax
mov eax, 0x10543
cdq
idiv dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
push str.B__5mlKM_livable_plimsolls_geniuses_splash
call fcn.004010e0
add esp, 4
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
shl edx, cl
mov dword [ebp - 8], edx
push str.warms_nosed_adopted_morale_craftsmen_polecats
call fcn.004010e0
add esp, 4
imul eax, dword [ebp - 0xc], 0x10d23
cdq
idiv dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 0x10]
sar edx, cl
mov dword [ebp - 0x10], edx
jmp 0x40c798
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 8]
add eax, ecx
and eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
sub ecx, edx
mov eax, dword [ebp - 0x10]
sar eax, cl
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push str.militates_throttling_heretical_practitioner_VQvW_Y1P_wisdom
call fcn.004010e0
add esp, 4
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sar edx, cl
and edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0xc]
mov ecx, edx
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0xc]
cdq
idiv dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sar edx, cl
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
shl edx, cl
mov dword [ebp - 0xc], edx
mov eax, dword [0x431984]
cmp eax, dword [ebp - 0x10]
jl 0x40c4a3
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x10]
mov eax, 0x15dab
sub eax, edx
mov dword [ebp - 0x14], eax
jmp 0x40c798
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0xc]
sub eax, dword [ebp - 0xc]
and ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00402480
add esp, 8
mov dword [ebp - 0x14], 0x1af5
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 0x9059
and edx, eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401a50
add esp, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLargePageMinimum]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x10]
sub ecx, eax
shl esi, cl
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402010
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll__lwrite]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0xc]
imul eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, eax
sar edx, cl
or edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x4319a0]
mov dword [ebp - 0x34], ecx
jmp 0x40c678
mov edx, dword [ebp - 0x34]
sub edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 8]
je 0x40c72d
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
shl edx, cl
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
and eax, dword [ebp - 8]
or edx, eax
mov dword [ebp - 0x10], edx
imul ecx, dword [ebp - 0xc], 0x15233
mov dword [ebp - 0x14], ecx
mov edx, dword [0x4319a0]
cmp edx, dword [ebp - 0x14]
jle 0x40c728
call fcn.004049c0
cmp eax, dword [0x431a50]
jg 0x40c6cb
mov eax, dword [0x4319a4]
cmp eax, dword [ebp - 0x10]
je 0x40c6d6
mov ecx, dword [0x431ab0]
cmp ecx, dword [ebp - 0x14]
jne 0x40c728
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shl edx, cl
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00402300
add esp, 0x10
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, edx
sar eax, cl
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x431a50]
jne 0x40c6d6
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x40c66f
mov ecx, dword [0x4319f0]
cmp ecx, dword [ebp - 0xc]
jne 0x40c646
mov eax, dword [ebp - 0x10]
cdq
mov ecx, 0xa13c
idiv ecx
mov ecx, dword [ebp - 8]
sar eax, cl
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
or eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x431a50]
jne 0x40c623
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x431a18]
jle 0x40c5cd
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 8]
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x14]
add eax, edx
mov ecx, dword [ebp - 8]
shl eax, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x40c332
mov ecx, dword [0x4319a0]
cmp ecx, dword [ebp - 0x14]
jne 0x40c318
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax - 0xd361]
mov dword [ebp - 0x14], edx
mov esi, dword [ebp - 0x14]
add esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cdq
mov ecx, 0x12ea3
idiv ecx
imul ecx, edx, 0x1111c
add ecx, dword [ebp - 0x10]
shl esi, cl
mov dword [ebp - 0x10], esi
jmp 0x40c2d1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.0041455f
add esp, 4
cmp dword [ebp - 0x40], 0
jne 0x40c81a
mov dword [ebp - 0x60], 0
jmp 0x40c827
mov dword [ebp - 0x18], 0x8123
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x64]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
jmp 0x40c871
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0041455f
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x40c85d
mov dword [ebp - 0x6c], 0
jmp 0x40c86a
mov dword [ebp - 0x18], 0x8123
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x6c], edx
jmp 0x40c21e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret