Function at 0x4974c9
Capabilities:
Enumerate files on windows
Enumerate files recursively
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1bbc
call fcn.004115d0
mov eax, dword [0x4d82d4]
xor eax, esp
mov dword [esp + 0x1bb8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x2c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x30]
xor ebx, ebx
push 0x13c
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x78]
push ebx
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x7c], ebx
call fcn.00401f80
add esp, 0xc
mov esi, 0x7ff
push esi
lea eax, [esp + 0x3c5]
push ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x3cc], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0xbc5]
push ebx
push eax
mov byte [esp + 0xbcc], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x13c5]
push ebx
push eax
mov byte [esp + 0x13cc], bl
call fcn.00401f80
add esp, 0xc
mov edx, edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00439c56
test eax, eax
je 0x4975a9
call fcn.00496d62
xor eax, eax
jmp 0x49805f
mov edx, dword [esp + 0x18]
call fcn.00439c56
test eax, eax
jne 0x49759d
push edi
mov ecx, 0x800
lea eax, [esp + 0xbc4]
call fcn.00438b01
mov edx, dword [esp + 0x3c]
pop ecx
call fcn.00439c56
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov dword [esp + 0x48], edi
cmp dword [esp + 0x38], ebx
jne 0x497617
cmp dword [ebp + 0x28], ebx
je 0x497617
xor eax, eax
mov word [esp + 0x60], ax
lea edi, [esp + 0x62]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x4eacd4
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword [esp + 0x48]
cmp edi, ebx
je 0x497630
push dword [esp + 0x38]
lea ecx, [esp + 0xbc4]
call fcn.00439909
jmp 0x497738
lea esi, [esp + 0xbc0]
call fcn.00439757
cmp byte [esp + 0xbc0], bl
je 0x49765e
mov eax, esi
push eax
call fcn.00401a80
pop ecx
mov ecx, esi
cmp byte [eax + ecx - 1], 0x5c
jne 0x49765e
push 0x4a8358
jmp 0x497675
lea eax, [esp + 0xbc0]
push eax
call fcn.0048a4a9
pop ecx
test eax, eax
je 0x497684
push 0x4a835c
lea eax, [esp + 0xbc4]
push eax
call fcn.00401bb0
pop ecx
pop ecx
push dword [esp + 0x18]
push dword [esp + 0x2c]
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x4976a5
push dword [esp + 0x18]
call fcn.0048a4a9
pop ecx
test eax, eax
je 0x497721
push dword [esp + 0x18]
mov edi, 0x800
mov ecx, edi
lea eax, [esp + 0x13c4]
call fcn.00438b01
pop ecx
push dword [esp + 0x18]
call fcn.0048a4a9
pop ecx
test eax, eax
jne 0x4976da
push 3
pop eax
lea esi, [esp + 0x13c0]
call fcn.0043a942
push str..ark
mov eax, edi
lea esi, [esp + 0x13c4]
call fcn.00439c15
mov eax, esi
pop ecx
mov dword [esp + 0x18], eax
xor esi, esi
lea edi, [esp + 0x13c0]
call fcn.0048c243
test eax, eax
je 0x497721
mov eax, edi
push str..ark
push eax
call fcn.00401bb0
inc esi
pop ecx
mov eax, edi
pop ecx
mov dword [esp + 0x18], eax
cmp esi, 0xa
jl 0x4976f6
push dword [esp + 0x18]
mov ecx, 0x800
mov eax, 0x4e9cd0
call fcn.00438b01
mov edi, dword [esp + 0x4c]
pop ecx
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xbc4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x49759d
mov dword [esp + 0x10], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea esi, [esp + 0x9c]
call fcn.0043897b
cmp byte [esp + 0x9c], bl
je 0x497da2
test byte [esp + 0x70], 0x10
jne 0x497da2
cmp byte [esp + 0x9c], 0x2e
je 0x497da2
cmp dword [ebp + 0x18], ebx
jne 0x4977ab
test byte [esp + 0x70], 2
jne 0x497da2
cmp dword [ebp + 0x1c], ebx
jne 0x4977bb
test byte [esp + 0x70], 4
jne 0x497da2
cmp edi, ebx
jne 0x4978b8
push dword [esp + 0x18]
lea edx, [esp + 0xa0]
call fcn.00439a29
pop ecx
test eax, eax
je 0x4978b8
mov esi, 0x103
push esi
lea eax, [esp + 0x1b5]
push ebx
push eax
mov byte [esp + 0x1bc], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x2bd]
push ebx
push eax
mov byte [esp + 0x2c4], bl
call fcn.00401f80
add esp, 0xc
lea eax, [esp + 0xbc0]
push eax
inc esi
mov ecx, esi
lea eax, [esp + 0x1b4]
mov dword [esp + 0x60], ebx
call fcn.00438b01
pop ecx
call fcn.0043893a
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x1b4]
push eax
call fcn.00401bb0
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x1bc]
push eax
call fcn.00401811
add esp, 0x10
test eax, eax
jne 0x497881
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1b4]
push eax
push esi
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x2bc]
push eax
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x2b8]
push eax
lea eax, [esp + 0x1b4]
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x497da2
mov esi, dword [0x4e9cc8]
cmp esi, ebx
je 0x4978ff
lea eax, [esp + 0x9c]
push eax
call fcn.0043767f
pop ecx
test eax, eax
je 0x4978ff
lea eax, [esp + 0x9c]
push eax
call fcn.00437286
mov esi, dword [0x4e9cc8]
pop ecx
call fcn.00437073
test eax, eax
jg 0x497da2
call fcn.00496d62
jmp 0x497da2
lea eax, [esp + 0xbc0]
push eax
mov ecx, 0x800
lea eax, [esp + 0x3c4]
call fcn.00438b01
pop ecx
call fcn.0043893a
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x3c4]
push eax
call fcn.00401bb0
push 0x865
push str.Archive.c
mov edx, 0x4a829c
lea ecx, [esp + 0x3d0]
call fcn.0048ae1a
add esp, 0x10
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x497da2
cmp dword [esp + 0x14], ebx
jne 0x497a22
mov edi, dword [esp + 0x18]
call fcn.0048c243
test eax, eax
je 0x4979fa
cmp dword [ebp + 0x24], ebx
je 0x497995
push str..exe
mov esi, edi
call fcn.0043a830
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
jne 0x4979fa
mov ecx, dword [esp + 0x18]
push 0x86f
push str.Archive.c
mov edx, 0x4a8368
call fcn.0048ae1a
mov edi, eax
pop ecx
pop ecx
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x498009
mov esi, dword [esp + 0x18]
push str..exe
call fcn.0043a830
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
jne 0x4979e2
mov esi, edi
call fcn.00496c79
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], ebx
jl 0x498009
push 2
push ebx
push edi
call fcn.0040287c
add esp, 0xc
jmp 0x497a18
mov ecx, dword [esp + 0x18]
push 0x887
push str.Archive.c
mov edx, 0x4a82e8
call fcn.0048ae1a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
je 0x498009
cmp dword [esp + 0x1c], ebx
jne 0x497a42
push 1
push 0xc366
call fcn.00401a3a
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x498009
mov esi, dword [esp + 0x14]
push esi
call fcn.0040278d
pop ecx
mov dword [esp + 0x58], eax
cmp eax, ebx
jl 0x498009
sub eax, dword [esp + 0x30]
jne 0x497afc
push esi
xor edi, edi
inc edi
push edi
lea eax, [esp + 0x4c]
push 4
push eax
mov dword [esp + 0x54], ebx
call fcn.0040257f
add esp, 0x10
cmp eax, edi
jb 0x498009
push esi
push edi
lea eax, [esp + 0x48]
push 4
push eax
mov dword [esp + 0x50], ebx
call fcn.0040257f
add esp, 0x10
cmp eax, edi
jb 0x498009
push 8
push ebx
mov edi, 0x4eacdc
push edi
call fcn.00401f80
add esp, 0xc
push esi
push 1
push 8
push edi
call fcn.0040257f
add esp, 0x10
cmp eax, 1
jb 0x498009
mov esi, str.222PAULAARCHIVE222JesusIAdoreYou
push esi
push 0x4a836c
push dword [esp + 0x1c]
call fcn.00402261
add esp, 0xc
test eax, eax
jle 0x498009
push esi
call fcn.00401a80
pop ecx
mov ecx, dword [esp + 0x30]
lea eax, [eax + ecx + 0x10]
mov dword [esp + 0x58], eax
jmp 0x497b01
mov edi, 0x4eacdc
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push 1
push 4
push eax
call fcn.0040257f
add esp, 0x10
cmp eax, 1
jb 0x498009
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x497b91
lea eax, [esp + 0xbc0]
push eax
mov ecx, 0x800
lea eax, [esp + 0x3c4]
call fcn.00438b01
pop ecx
call fcn.0043893a
mov eax, esi
call fcn.00438b41
test eax, eax
jne 0x497b63
lea eax, [esp + 0x3c0]
push eax
call fcn.00438a8c
pop ecx
test eax, eax
jne 0x497ba2
push ebx
lea eax, [esp + 0x3c4]
push esi
push eax
call fcn.0043a7e7
add esp, 0xc
lea esi, [esp + 0x3c0]
call fcn.00439b1b
mov edx, esi
lea ecx, [esp + 0x9c]
call fcn.0043aa27
jmp 0x497ba2
push dword [esp + 0x38]
lea ecx, [esp + 0xa0]
call fcn.00439909
pop ecx
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.00401a80
pop ecx
inc eax
push eax
lea eax, [esp + 0xa4]
push 1
push eax
call fcn.0040257f
mov esi, eax
lea eax, [esp + 0xac]
push eax
call fcn.00401a80
add esp, 0x14
inc eax
cmp esi, eax
jb 0x498009
lea esi, [esp + 0x9c]
call fcn.0043897b
cmp dword [ebp + 0x28], ebx
je 0x497c09
mov eax, dword [0x4eacd4]
mov dword [esp + 0x84], eax
mov eax, dword [0x4eacd8]
mov dword [esp + 0x88], eax
push dword [esp + 0x14]
lea eax, [esp + 0x88]
push 1
push 8
push eax
call fcn.0040257f
add esp, 0x10
cmp eax, 1
jb 0x498009
push edi
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x497c55
mov eax, dword [esp + 0x84]
mov dword [0x4eacdc], eax
mov eax, dword [esp + 0x88]
mov dword [0x4eace0], eax
push dword [esp + 0x34]
inc dword [esp + 0x30]
mov edi, 0x56ce
push edi
push 1
push dword [esp + 0x28]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call fcn.00402244
movzx esi, ax
add esp, 0x10
cmp si, bx
jbe 0x497d30
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x4c], eax
push dword [ebp + 0x34]
mov ebx, dword [esp + 0x50]
push dword [esp + 0x58]
push esi
push dword [esp + 0x28]
call fcn.00497117
push dword [esp + 0x24]
movzx eax, ax
push 1
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
push 2
push eax
call fcn.0040257f
add esp, 0x20
cmp eax, 1
jae 0x497cce
and dword [esp + 0x10], 0
push dword [esp + 0x14]
movzx eax, word [esp + 0x40]
movzx ebx, word [esp + 0x40]
push eax
push 1
push dword [esp + 0x58]
call fcn.0040257f
add esp, 0x10
cmp eax, ebx
jae 0x497cf4
and dword [esp + 0x10], 0
add dword [esp + 0x24], 2
cmp si, di
jae 0x497d0b
mov eax, dword [esp + 0x28]
inc dword [esp + 0x28]
cmp eax, 0xa
jg 0x497d2e
push dword [esp + 0x34]
add dword [esp + 0x28], ebx
push edi
push 1
push dword [esp + 0x28]
call fcn.00402244
movzx esi, ax
add esp, 0x10
test si, si
jne 0x497c93
xor ebx, ebx
push ebx
push dword [esp + 0x5c]
push dword [esp + 0x1c]
call fcn.0040287c
add esp, 0xc
test eax, eax
je 0x497d49
mov dword [esp + 0x10], ebx
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push 1
push 4
push eax
call fcn.0040257f
add esp, 0x10
cmp eax, 1
jae 0x497d67
mov dword [esp + 0x10], ebx
push 2
push ebx
push dword [esp + 0x1c]
call fcn.0040287c
add esp, 0xc
test eax, eax
je 0x497d7e
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x34]
call fcn.0048d8ca
push 0x140
lea eax, [esp + 0x74]
push ebx
push eax
mov dword [esp + 0x40], ebx
call fcn.00401f80
mov edi, dword [esp + 0x54]
add esp, 0xc
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x497769
cmp dword [ebp + 0x14], ebx
je 0x497f35
cmp dword [esp + 0x20], ebx
je 0x497dd2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0xbc0]
push eax
mov ecx, 0x800
lea eax, [esp + 0x3c4]
call fcn.00438b01
pop ecx
push eax
call fcn.00401a80
pop ecx
lea ecx, [esp + 0x3c0]
cmp byte [eax + ecx - 1], 0x5c
je 0x497e08
mov eax, ecx
call fcn.0043893a
lea eax, [esp + 0x3c0]
push 0x4a8358
push eax
call fcn.00401bb0
pop ecx
pop ecx
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x49800d
test byte [esp + 0x70], 0x10
je 0x497f0b
lea esi, [esp + 0x9c]
call fcn.0043897b
cmp byte [esp + 0x9c], bl
je 0x497f1e
cmp byte [esp + 0x9c], 0x2e
je 0x497f1e
cmp dword [ebp + 0x18], ebx
jne 0x497e7e
test byte [esp + 0x70], 2
jne 0x497f1e
cmp dword [ebp + 0x1c], ebx
jne 0x497e8e
test byte [esp + 0x70], 4
jne 0x497f1e
cmp dword [esp + 0x1c], ebx
je 0x497ea2
push dword [esp + 0x1c]
call fcn.00401a00
pop ecx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x497eb3
call fcn.0048d8ca
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x3c4]
push 0x4a8370
push eax
call fcn.00401954
add esp, 0xc
push dword [ebp + 0x34]
lea eax, [esp + 0x3c4]
push eax
push dword [esp + 0x58]
lea eax, [esp + 0xbcc]
push dword [ebp + 0x28]
push ebx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esp + 0x78]
push dword [esp + 0x40]
push eax
call fcn.004974c9
add esp, 0x30
add dword [esp + 0x2c], eax
push 0x140
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.00401f80
add esp, 0xc
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x497e3c
cmp dword [esp + 0x38], ebx
jne 0x49800d
cmp dword [esp + 0x2c], ebx
jle 0x49800d
cmp dword [esp + 0x14], ebx
jne 0x497f75
mov ecx, dword [esp + 0x18]
push 0x9a6
push str.Archive.c
mov edx, 0x4a8368
call fcn.0048ae1a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x498009
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
push ebx
add esi, 8
push esi
push edi
call fcn.0040287c
add esp, 0xc
push edi
push 1
push 8
push 0x4eacdc
call fcn.0040257f
add esp, 0x10
cmp eax, 1
jae 0x497fa6
mov dword [esp + 0x10], ebx
push ebx
push esi
push edi
call fcn.0040287c
add esp, 0xc
xor ecx, ecx
mov edx, edi
call fcn.00496aa1
push edi
mov dword [esp + 0x44], eax
call fcn.0040278d
pop ecx
push ebx
push dword [esp + 0x34]
mov dword [esp + 0x4c], eax
push edi
call fcn.0040287c
add esp, 0xc
push edi
push 1
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.0040257f
add esp, 0x10
cmp eax, 1
jae 0x497ff2
mov dword [esp + 0x10], ebx
push edi
push 1
lea eax, [esp + 0x48]
push 4
push eax
call fcn.0040257f
add esp, 0x10
cmp eax, 1
jae 0x49800d
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x49801a
call fcn.0048d8ca
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x498027
call fcn.0048d8ca
cmp dword [esp + 0x20], ebx
je 0x49803e
cmp dword [esp + 0x20], 0xffffffff
je 0x49803e
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1c], ebx
je 0x49804e
push dword [esp + 0x1c]
call fcn.00401a00
pop ecx
call fcn.00496d62
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1bc4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret