Function at 0x10004d10
Capabilities:
Parse pe header
Read file on windows
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10016c10
push 0x100097a0
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x1001803c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3f0], ebx
mov edi, edx
mov dword [ebp - 0x3cc], edi
xor esi, esi
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x3d8], esi
mov dword [ebp - 0x3e0], esi
mov dword [ebp - 0x404], esi
mov dword [ebp - 0x3d0], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi], esi
mov dword [edi + 0x1c], esi
wait
mov dword [ebp - 4], esi
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x408], eax
cmp eax, esi
je 0x10005879
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x3d8], eax
test eax, eax
je 0x10005879
mov ecx, 0x5a4d
mov edx, eax
cmp word [edx], cx
jne 0x10005879
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x2c], esi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10005879
cmp dword [esi], 0x4550
jne 0x10005879
movzx eax, word [esi + 6]
test ax, ax
je 0x10005879
cmp dword [esi + 0x34], 0
jbe 0x10005879
cmp dword [esi + 0x28], 0
jbe 0x10005879
test ax, ax
jbe 0x10005879
mov eax, 0x2000
test word [esi + 0x16], ax
je 0x10004e34
or dword [edi], 2
cmp word [esi + 0x5c], 2
jne 0x10004e49
or dword [edi], 4
mov eax, dword [edi]
test al, 2
jne 0x10004e49
or eax, 8
mov dword [edi], eax
movzx ecx, word [esi + 6]
mov dword [ebp - 0x3f4], ecx
mov eax, dword [ebp - 0x3d8]
mov edx, dword [eax + 0x3c]
lea eax, [edx + eax + 0xf8]
mov dword [ebp - 0x3e0], eax
mov ecx, dword [eax + 0x14]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x28]
mov edi, dword [eax + 0xc]
sub edi, dword [eax + 0x14]
sub ecx, edi
mov edx, ecx
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x3e8], eax
xor esi, esi
mov dword [ebp - 0x3ec], esi
call fcn.100061c0
push esi
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10004eb8
push esi
lea ecx, [ebp - 0x3ec]
push ecx
push 5
lea edx, [ebp - 0x24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x10005076
cmp byte [ebp - 0x24], 0x68
jne 0x10005076
movzx esi, byte [ebp - 0x21]
shl esi, 8
movzx eax, byte [ebp - 0x22]
add esi, eax
shl esi, 8
movzx ecx, byte [ebp - 0x23]
add esi, ecx
sub esi, dword [ebp - 0x3e8]
sub esi, edi
call fcn.100061c0
mov dword [ebp - 0x3e4], 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10004f24
push 0
lea edx, [ebp - 0x3ec]
push edx
push 5
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 0x20], 0
cmp dword [ebp - 0x3e4], 0
je 0x10005076
lea ecx, [ebp - 0x24]
push ecx
mov eax, str.VB5_
mov ecx, 5
call fcn.10006100
add esp, 4
test eax, eax
je 0x10005076
mov eax, dword [ebp - 0x3cc]
or dword [eax], 0x10
xor ebx, ebx
push ebx
push ebx
add esi, 0x30
push esi
mov edx, dword [ebp - 0x3f0]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10004f93
push ebx
lea eax, [ebp - 0x3ec]
push eax
push 5
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x3f0]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x10005076
movzx edx, byte [ebp - 0x22]
shl edx, 8
movzx eax, byte [ebp - 0x23]
add edx, eax
shl edx, 8
movzx ecx, byte [ebp - 0x24]
add edx, ecx
sub edx, dword [ebp - 0x3e8]
sub edx, edi
add edx, 0x24
call fcn.100061c0
xor esi, esi
push esi
push esi
push edx
mov edi, dword [ebp - 0x3f0]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10004ff5
push esi
lea edx, [ebp - 0x3ec]
push edx
push 0x20e
lea eax, [ebp - 0x3c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x10005076
lea ecx, [ebp - 0x3c8]
push ecx
push 0x10016044
mov ecx, 0x107
lea edi, [ebp - 0x1b8]
call fcn.100010c0
add esp, 8
cmp byte [ebp - 0x1b8], 0
je 0x10005076
xor edi, edi
xor esi, esi
mov dword [ebp - 0x428], esi
cmp esi, dword [0x1001a480]
jae 0x10005056
mov edx, dword [esi*4 + 0x1001a304]
push edx
lea eax, [ebp - 0x1b8]
push eax
mov eax, 0x107
call fcn.10005b20
add esp, 8
test eax, eax
je 0x10005073
lea edi, [esi + 1]
test edi, edi
je 0x10005076
mov dword [ebp - 0x3d0], 9
dec edi
mov ecx, dword [ebp - 0x3cc]
mov dword [ecx + 0x1c], edi
jmp 0x10005879
inc esi
jmp 0x10005025
mov ebx, dword [ebp - 0x2c]
movzx eax, word [ebx + 0x44]
test eax, 0xff00
je 0x100050ac
mov edx, 0xff00
test word [ebx + 0x46], dx
je 0x100050ac
movzx ecx, word [ebx + 0x52]
cmp ecx, 0x43
je 0x1000509d
cmp ecx, 0x1d
jne 0x100050ac
mov dword [ebp - 0x3d0], 0xa
jmp 0x10005879
mov esi, 1
cmp ax, si
jne 0x100050f3
cmp word [ebx + 0x46], 0
jne 0x100050f3
mov ecx, dword [ebp - 0x3e0]
cmp dword [ecx + 0xc], 0x1000
jne 0x100050dd
mov eax, dword [ecx + 0x14]
cmp eax, 0x400
je 0x100050e9
cmp eax, 0x1000
je 0x100050e9
cmp dword [ebx + 0xd0], 0x220
jne 0x100050f9
mov eax, esi
mov dword [ebp - 0x3e8], esi
jmp 0x10005101
mov ecx, dword [ebp - 0x3e0]
xor eax, eax
mov dword [ebp - 0x3e8], eax
mov edx, dword [ebp - 0x3cc]
test byte [edx], 0x10
je 0x10005113
test eax, eax
je 0x1000511e
mov dword [edx + 0x18], esi
test eax, eax
je 0x1000511e
movzx eax, byte [ebx + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1000512c
mov eax, dword [ecx + 0x38]
test eax, eax
jbe 0x1000512f
mov dword [edx + 8], eax
cmp dword [ebx + 0x34], 0x10000000
jne 0x100051a2
cmp dword [ebx + 0x7c], 0
jne 0x100051a2
cmp dword [ebx + 0x78], 0
jne 0x100051a2
cmp dword [ebx + 0x8c], 0
jne 0x100051a2
cmp dword [ebx + 0x88], 0
jne 0x100051a2
mov eax, dword [ebx + 0x50]
cmp dword [ecx + 0x10], 0
jne 0x1000518a
cmp eax, 0x1a000
je 0x1000517b
cmp eax, 0x1b000
je 0x1000517b
cmp eax, 0x1c000
je 0x1000517b
cmp eax, 0x1d000
jne 0x100051a2
xor eax, eax
cmp eax, dword [ecx + 0x38]
sbb ecx, ecx
and ecx, 2
mov dword [edx + 0x14], ecx
jmp 0x100051a2
cmp eax, 0x17000
je 0x1000519f
cmp eax, 0x18000
je 0x1000519f
cmp eax, 0x19000
jne 0x100051a2
mov dword [edx + 0x14], esi
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x3e4], edx
mov dword [ebp - 0x3fc], 0xffffffff
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
xor edi, edi
mov dword [ebp - 0x42c], edi
cmp word [ebp - 0x3f4], 0
jbe 0x10005312
call fcn.100061c0
push 4
lea eax, [ebp - 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, esi
je 0x10005312
mov esi, dword [ebp - 0x3e0]
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x3e4], eax
jb 0x10005212
mov ecx, eax
sub ecx, dword [esi + 0x14]
mov dword [ebp - 0x3fc], ecx
mov ecx, dword [ebx + 0x28]
cmp eax, ecx
ja 0x10005228
mov edx, dword [esi + 8]
add edx, eax
cmp ecx, edx
jae 0x10005228
mov dword [ebp - 0x404], esi
test edi, edi
jne 0x1000525f
push esi
mov eax, str..text
lea ecx, [edi + 8]
call fcn.10006100
add esp, 4
test eax, eax
jne 0x1000525f
push esi
mov eax, str.CODE
lea ecx, [edi + 8]
call fcn.10006100
add esp, 4
test eax, eax
jne 0x1000525f
mov eax, dword [ebp - 0x3cc]
or dword [eax], 1
cmp edi, 1
jne 0x1000527b
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
mov dword [ebp - 0x418], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
cmp edi, 2
jne 0x100052d2
push esi
mov eax, str..rsrc
lea ecx, [edi + 6]
call fcn.10006100
add esp, 4
test eax, eax
je 0x1000529e
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x41c], edx
cmp edi, 2
jne 0x100052d2
mov eax, dword [ebp - 0x3cc]
test byte [eax], 1
je 0x100052d2
push esi
mov eax, str._winc
lea ecx, [edi + 6]
call fcn.10006100
add esp, 4
test eax, eax
je 0x100052d2
mov dword [ebp - 0x3d0], 0xc
jmp 0x10005879
cmp word [ebp - 0x3f4], 1
jne 0x10005583
test edi, edi
jbe 0x10005583
test byte [esi + 0x24], 0x20
je 0x10005583
cmp byte [esi], 0
je 0x10005583
cmp dword [ebx + 8], 0xa0a0a0a0
jne 0x1000546c
mov dword [ebp - 0x3d0], 8
mov edx, dword [ebp - 0x3cc]
test byte [edx], 0x10
je 0x10005322
call fcn.100061c0
xor edi, edi
xor ebx, ebx
mov edx, dword [ebp - 0x41c]
cmp edx, 1
jbe 0x10005742
mov dword [ebp - 0x3d4], edi
mov dword [ebp - 0x3f8], edi
call fcn.100061c0
mov eax, dword [ebp - 0x3d8]
lea ebx, [edx + eax]
push 4
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call esi
cmp eax, 1
je 0x10005879
lea eax, [ebx + 0x10]
mov dword [ebp - 0x3d4], eax
push 4
push eax
call esi
cmp eax, 1
je 0x10005879
mov dword [ebp - 0x400], edi
mov dword [ebp - 0x3dc], edi
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x424], edi
cmp word [ebx + 0xe], 0xa
jae 0x10005721
cmp word [ebx + 0xc], di
jne 0x10005721
mov dword [ebp - 0x400], edi
movzx ecx, word [ebx + 0xe]
movzx edx, word [ebx + 0xc]
add ecx, edx
movzx eax, word [ebp - 0x400]
cmp eax, ecx
jge 0x10005721
call fcn.100061c0
mov ecx, dword [ebp - 0x3d4]
cmp dword [ecx], 3
jne 0x100056cd
mov edx, ecx
mov esi, dword [edx + 4]
and esi, 0x7fffffff
add esi, ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10005879
lea edi, [esi + 0x10]
mov dword [ebp - 0x3f8], edi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10005879
movzx eax, word [esi + 0xe]
cmp ax, 4
jb 0x1000560d
cmp ax, 0xf
ja 0x1000560d
cmp word [esi + 0xc], 0
jne 0x1000560d
xor edx, edx
mov dword [ebp - 0x3dc], edx
cmp dx, word [esi + 0xe]
jae 0x100055a1
movzx eax, dx
mov ecx, dword [edi]
mov dword [ebp + eax*4 - 0xb0], ecx
call fcn.100061c0
add edi, 8
mov dword [ebp - 0x3f8], edi
inc edx
jmp 0x1000543f
mov eax, dword [ebp - 0x3cc]
mov dword [eax + 0x14], 5
mov ecx, dword [esi + 0x14]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov eax, 2
mov dword [ebp - 0x3d0], eax
mov dword [ebp - 0x420], 0
lea ecx, [eax - 1]
cmp byte [ebp - 0x30], 0x2e
je 0x100054a5
mov ecx, eax
mov dword [ebp - 0x420], eax
cmp eax, 8
jae 0x100054cb
mov edx, eax
sub edx, ecx
mov dl, byte [ebp + edx - 0x30]
cmp dl, byte [eax + esi]
je 0x1000557d
mov dword [ebp - 0x3d0], 0
cmp dword [ebp - 0x404], 0
je 0x10005312
cmp dword [ebp - 0x404], esi
jne 0x10005312
mov eax, dword [ebp - 0x3cc]
mov dword [eax + 0x14], 4
push esi
mov eax, str..rsrc
mov ecx, 8
call fcn.10006100
add esp, 4
test eax, eax
jne 0x1000556e
push esi
mov eax, str..reloc
mov ecx, 8
call fcn.10006100
add esp, 4
test eax, eax
jne 0x1000556e
push esi
mov eax, str..data
mov ecx, 8
call fcn.10006100
add esp, 4
test eax, eax
jne 0x1000556e
lea ecx, [esi + 2]
push ecx
mov eax, str.data
mov ecx, 6
call fcn.10006100
add esp, 4
test eax, eax
jne 0x1000556e
add esi, 3
push esi
mov eax, str.data
mov ecx, 5
call fcn.10006100
add esp, 4
test eax, eax
je 0x10005312
mov dword [ebp - 0x3d0], 6
jmp 0x10005312
inc eax
jmp 0x100054a5
inc edi
add esi, 0x28
mov dword [ebp - 0x3e0], esi
add dword [ebp - 0x3f4], 0xffff
mov esi, 1
jmp 0x100051c6
mov eax, dword [ebp - 0xb0]
mov ecx, 1
cmp eax, ecx
jne 0x1000560d
cmp dword [ebp - 0xac], 2
jne 0x100055d1
cmp dword [ebp - 0xa8], 3
jne 0x100055d1
cmp dword [ebp - 0xa4], 4
jne 0x100055d1
mov dword [ebp - 0x414], ecx
cmp eax, ecx
jne 0x1000560d
cmp dword [ebp - 0xac], 2
jne 0x1000560d
cmp dword [ebp - 0xa8], 3
jne 0x1000560d
cmp dword [ebp - 0xa4], 0x7531
jne 0x1000560d
mov eax, 4
cmp word [esi + 0xe], ax
jne 0x1000560d
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x3cc]
mov dword [edx + 0x18], eax
cmp word [esi + 0xe], 3
jne 0x1000567b
cmp word [esi + 0xc], 0
jne 0x1000567b
xor edx, edx
mov dword [ebp - 0x3dc], edx
cmp dx, word [esi + 0xe]
jae 0x10005646
movzx eax, dx
mov ecx, dword [edi]
mov dword [ebp + eax*4 - 0x44c], ecx
call fcn.100061c0
add edi, 8
mov dword [ebp - 0x3f8], edi
inc edx
jmp 0x1000561d
mov eax, 1
cmp dword [ebp - 0x44c], eax
jne 0x1000567b
cmp dword [ebp - 0x448], 2
jne 0x1000567b
cmp dword [ebp - 0x444], 0x7531
jne 0x1000567b
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp - 0x3cc]
mov dword [edx + 0x18], 4
cmp word [esi + 0xe], 1
jne 0x100056cd
cmp word [esi + 0xc], 0
jne 0x100056cd
xor edx, edx
mov dword [ebp - 0x3dc], edx
cmp dx, word [esi + 0xe]
jae 0x100056b4
movzx eax, dx
mov ecx, dword [edi]
mov dword [ebp + eax*4 - 0x44c], ecx
call fcn.100061c0
add edi, 8
mov dword [ebp - 0x3f8], edi
inc edx
jmp 0x1000568b
cmp dword [ebp - 0x44c], 0x7531
jne 0x100056cd
mov edx, dword [ebp - 0x3cc]
mov dword [edx + 0x18], 3
mov eax, dword [ebp - 0x3d4]
cmp dword [eax], 0xe
jne 0x1000570d
mov ecx, eax
mov esi, dword [ecx + 4]
and esi, 0x7fffffff
add esi, ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10005879
call fcn.100061c0
cmp word [esi + 0xc], 0
jbe 0x1000570d
mov dword [ebp - 0x424], 1
add dword [ebp - 0x3d4], 8
inc dword [ebp - 0x400]
xor edi, edi
jmp 0x100053b3
cmp dword [ebp - 0x414], edi
je 0x10005731
cmp dword [ebp - 0x424], edi
jne 0x1000573d
cmp dword [ebp - 0x40c], edi
jne 0x1000573d
xor ebx, ebx
jmp 0x10005742
mov ebx, 1
mov dword [ebp - 0x410], edi
cmp ebx, edi
je 0x1000575b
mov edx, dword [ebp - 0x3cc]
test byte [edx], 0x10
jne 0x1000584c
mov eax, dword [ebp - 0x3cc]
test byte [eax], 0x10
jne 0x1000583f
cmp dword [ebp - 0x3e8], 0
jne 0x1000577b
test ebx, ebx
je 0x10005858
mov esi, dword [ebp - 0x3e4]
sub esi, dword [ebp - 0x3fc]
add esi, dword [ebp - 0x3d8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10005879
mov eax, dword [esi + 0xc]
mov edx, eax
mov ecx, dword [ebp - 0x3fc]
sub edx, ecx
push edx
push ecx
push eax
push str.pID__Name___dwRVAminus___x____x___x
mov ecx, 0x64
lea edi, [ebp - 0xa0]
call fcn.100010c0
add esp, 0x10
mov eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x3fc]
xor esi, esi
push esi
push esi
push eax
mov edi, dword [ebp - 0x3f0]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100057fe
push esi
lea eax, [ebp - 0x3ec]
push eax
push 0xd
lea ecx, [ebp - 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x1000583f
lea edx, [ebp - 0x34]
push edx
mov eax, str.MSVBVM60.DLL
mov ecx, 0xd
call fcn.10006100
add esp, 4
test eax, eax
je 0x1000583f
test ebx, ebx
je 0x1000582c
mov dword [ebp - 0x410], 1
jmp 0x1000583f
mov eax, dword [ebp - 0x3cc]
cmp dword [eax + 0x18], 0
jne 0x1000583f
mov dword [eax + 0x18], 1
test ebx, ebx
je 0x10005858
cmp dword [ebp - 0x410], 0
je 0x10005858
mov dword [ebp - 0x3d0], 0x11
jmp 0x10005879
call fcn.100061c0
mov eax, dword [ebp - 0x3cc]
cmp dword [eax + 0x18], 1
jne 0x10005879
cmp dword [ebp - 0x418], 0
je 0x10005879
mov dword [eax + 0x18], 0
wait
mov dword [ebp - 4], 0xfffffffe
call fcn.100058a8
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100065f6
mov esp, ebp
pop ebp
ret