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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b40bc
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d7a50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
call fcn.0040fd30
mov dword [ebp - 0x44], eax
push ecx
mov eax, esp
mov dword [ebp - 0x54], esp
push 0x4c0b5c
mov ecx, dword [ebp - 0x44]
add ecx, 0xdc
push ecx
push eax
call fcn.0040e470
add esp, 0xc
mov dword [ebp - 0x84], eax
lea edx, [ebp - 0x58]
push edx
call fcn.00402300
add esp, 8
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0xf0
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040fec0
mov ecx, dword [ebp - 0x80]
call fcn.00451f80
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.004049d0
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040e620
movzx eax, al
test eax, eax
je 0x47438f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040fec0
jmp 0x474792
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0xe4]
mov dword [ebp - 0x10], edx
push 1
push 0
push 0x446
mov ecx, dword [ebp - 0x10]
call fcn.00480f83
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jge 0x4743bc
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0xf0
call fcn.0040fee0
push 1
mov ecx, dword [ebp - 0x44]
add ecx, 0xf0
push ecx
mov edx, esp
mov dword [ebp - 0x5c], esp
push ecx
mov ecx, edx
call fcn.0040fe20
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push str.daochuml
mov edx, dword [ebp - 0x44]
add edx, 0xdc
push edx
push ecx
call fcn.0040e470
add esp, 0xc
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
call fcn.004021f0
add esp, 0xc
mov dword [ebp - 0x20], 0x59b8c0
mov dword [ebp - 0x24], 0x58ce60
lea ecx, [ebp - 0x4c]
call fcn.0040fe00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0040fe00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0040fe00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0040fe00
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
push eax
call fcn.004781df
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
jmp 0x4744b5
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0xf9974]
jg 0x474741
push 0x4c0b74
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0xf9960]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
add edx, 4
push edx
call fcn.0040e540
add esp, 8
movzx eax, al
test eax, eax
je 0x47473c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
jmp 0x47450b
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 0x18778]
jge 0x47462c
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.00471fd0
movzx eax, al
test eax, eax
je 0x474627
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x18744], 2
jne 0x47455b
mov edx, dword [ebp - 0x34]
push edx
push str._02d
lea eax, [ebp - 0x4c]
push eax
call fcn.00410a80
add esp, 0xc
jmp 0x4745c2
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x18744], 3
jne 0x47457e
mov edx, dword [ebp - 0x34]
push edx
push str._03d
lea eax, [ebp - 0x4c]
push eax
call fcn.00410a80
add esp, 0xc
jmp 0x4745c2
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x18744], 4
jne 0x4745a1
mov edx, dword [ebp - 0x34]
push edx
push str._04d
lea eax, [ebp - 0x4c]
push eax
call fcn.00410a80
add esp, 0xc
jmp 0x4745c2
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x18744], 5
jne 0x4745c2
mov edx, dword [ebp - 0x34]
push edx
push str._05d
lea eax, [ebp - 0x4c]
push eax
call fcn.00410a80
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
lea edx, [ebp - 0x4c]
push edx
call fcn.0040fe20
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00401d50
add esp, 0xc
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0x3c]
test edx, edx
jne 0x474612
push 0x4c0b98
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00401760
add esp, 0xc
jmp 0x474627
push 0x4c0b9c
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401760
add esp, 0xc
jmp 0x474502
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0xf9960]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + eax*4]
add ecx, 8
push ecx
mov edx, esp
mov dword [ebp - 0x6c], esp
push ecx
mov ecx, edx
call fcn.0040fe20
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040c030
add esp, 8
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xa8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040fee0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.0040fec0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push str._s_s.txt
lea eax, [ebp - 0x38]
push eax
call fcn.00410a80
add esp, 0x10
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x38]
call fcn.0040ff40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4746f4
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push str._s_s__d.txt
lea edx, [ebp - 0x38]
push edx
call fcn.00410a80
add esp, 0x14
jmp 0x4746b8
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040fe40
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
lea edx, [ebp - 0x38]
push edx
call fcn.0040fe20
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 6
call fcn.004021f0
add esp, 0xc
jmp 0x4744ac
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004781d4
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0040fec0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0040fec0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0040fec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0040fec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040fec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret