Function at 0x405c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.DENKIPM.dll_Ordinal_1168]
movzx eax, al
test eax, eax
je 0x405c94
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x484], ecx
jmp 0x405c9d
mov edx, dword [ebp + 8]
mov dword [ebp - 0x484], edx
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x464], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x460], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1176]
movzx ecx, al
test ecx, ecx
jne 0x405d11
mov ecx, dword [ebp - 0x464]
call dword [sym.imp.DENKIPM.dll_Ordinal_1574]
mov dword [ebp - 0x480], eax
mov edx, dword [ebp - 0x480]
push edx
push 0x10
push 0
push 0x3e9
push 0
mov eax, dword [ebp - 0x464]
push eax
call fcn.00428e30
add esp, 0x18
xor al, al
jmp 0x406106
mov byte [ebp - 0x451], 1
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x458]
call dword [sym.imp.DENKIPM.dll_Ordinal_1124]
lea ecx, [ebp - 0x458]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1217]
movzx edx, al
test edx, edx
jne 0x405d46
mov byte [ebp - 0x451], 0
movzx eax, byte [ebp - 0x451]
test eax, eax
je 0x405d75
push 0x104
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x458]
call dword [sym.imp.DENKIPM.dll_Ordinal_1130]
cmp eax, 1
jge 0x405d75
mov byte [ebp - 0x451], 0
movzx edx, byte [ebp - 1]
test edx, edx
je 0x405d96
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405d96
mov byte [ebp - 0x451], 0
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x405e18
lea ecx, [ebp - 0x468]
call dword [sym.imp.DENKIPM.dll_Ordinal_1124]
lea edx, [ebp - 0x468]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1218]
movzx eax, al
test eax, eax
jne 0x405dc5
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x405dee
push 0x104
lea edx, [ebp - 0x348]
push edx
lea ecx, [ebp - 0x468]
call dword [sym.imp.DENKIPM.dll_Ordinal_1130]
cmp eax, 1
jge 0x405dee
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x405e0c
lea ecx, [ebp - 0x348]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405e0c
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x468]
call dword [sym.imp.DENKIPM.dll_Ordinal_1127]
movzx edx, byte [ebp - 0x451]
test edx, edx
je 0x405e44
push 0x104
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1221]
cmp eax, 1
jge 0x405e44
mov byte [ebp - 0x451], 0
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x405f0a
push 0x104
lea edx, [ebp - 0x450]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1223]
cmp eax, 1
jge 0x405e6e
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x405f0a
mov dword [ebp - 0x470], 0
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x46c], ecx
jmp 0x405ea5
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x405ec0
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x470], edx
jmp 0x405e92
cmp dword [ebp - 0x470], 0
je 0x405ef8
mov eax, dword [ebp - 0x470]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x405ef8
mov edx, dword [ebp - 0x46c]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x46c]
add eax, 1
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
mov byte [ecx], 0
push str.Drawings_
lea edx, [ebp - 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x73
mov eax, dword [0x430138]
push eax
lea ecx, [ebp - 0x138]
call fcn.0041a160
push 2
lea ecx, [ebp - 0x138]
call fcn.0041a420
lea ecx, [ebp - 0x138]
call fcn.0041a460
push 1
lea ecx, [ebp - 0x138]
call fcn.0041a4b0
movzx ecx, byte [ebp - 0x451]
test ecx, ecx
jne 0x405f59
movzx edx, byte [ebp - 1]
test edx, edx
je 0x406004
movzx eax, byte [ebp - 0x451]
test eax, eax
je 0x405fb0
lea ecx, [ebp - 0x138]
push ecx
push 0x406110
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.004096b0
test eax, eax
jne 0x405fb0
mov byte [ebp - 0x475], 0
lea ecx, [ebp - 0x138]
call fcn.0041a200
lea ecx, [ebp - 0x458]
call dword [sym.imp.DENKIPM.dll_Ordinal_1127]
mov al, byte [ebp - 0x475]
jmp 0x406106
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x406004
lea edx, [ebp - 0x138]
push edx
push 0x406110
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x348]
push ecx
call fcn.004096b0
test eax, eax
jne 0x406004
mov byte [ebp - 0x476], 0
lea ecx, [ebp - 0x138]
call fcn.0041a200
lea ecx, [ebp - 0x458]
call dword [sym.imp.DENKIPM.dll_Ordinal_1127]
mov al, byte [ebp - 0x476]
jmp 0x406106
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1255]
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1154]
jmp 0x406021
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1156]
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1155]
movzx edx, al
test edx, edx
jne 0x4060cb
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1259]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
call dword [sym.imp.DENKIPM.dll_Ordinal_1168]
movzx eax, al
test eax, eax
jne 0x406059
jmp 0x406018
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x474]
call dword [sym.imp.DENKIPM.dll_Ordinal_1277]
movzx edx, al
test edx, edx
jne 0x406072
jmp 0x406018
push 2
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x474]
push edx
call fcn.004062f0
add esp, 0x10
push 2
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x474]
push edx
call fcn.004064a0
add esp, 0x10
push 2
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x474]
push edx
call fcn.00406900
add esp, 0x10
jmp 0x406018
lea eax, [ebp - 0x240]
push eax
call fcn.00405b20
add esp, 4
mov byte [ebp - 0x477], al
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1257]
lea ecx, [ebp - 0x138]
call fcn.0041a200
lea ecx, [ebp - 0x458]
call dword [sym.imp.DENKIPM.dll_Ordinal_1127]
mov al, byte [ebp - 0x477]
mov esp, ebp
pop ebp
ret