Function at 0x40159f
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push ecx
push esi
push edi
enter 0x328, 0
push eax
push edx
sub ebp, 0x82
lea edx, [ebp - 0x1a2]
mov eax, 0x4010c1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00402049
push eax
call dword [ebx]
lea edx, [ebp - 0x1a2]
mov esi, eax
mov ebx, eax
mov eax, 0x4010e1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push esi
call dword [edi]
mov dword [ebp - 0x22], eax
cmp dword [ebp - 0x2aa], 0
jne 0x4015fd
push 0
call dword [ebp - 0x22]
mov dword [ebp - 0x2aa], eax
lea edx, [ebp - 0x1a2]
mov eax, 0x4010f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
push 0x104
mov dword [ebp - 0x5e], eax
lea eax, [ebp - 0x2a6]
push eax
push dword [ebp - 0x2aa]
call dword [ebp - 0x5e]
mov eax, dword [ebp - 0x2aa]
mov edx, eax
add edx, dword [eax + 0x3c]
mov dword [ebp + 0x72], edx
movzx eax, word [edx + 0x14]
add edx, 0x18
add edx, eax
mov eax, dword [ebp + 0x72]
movzx eax, word [eax + 6]
mov dword [ebp + 0x46], eax
mov eax, dword [edx + 0xc]
mov dword [ebp + 0x4a], eax
mov eax, dword [ebp - 0x2aa]
mov dword [ebp + 0x5e], edx
add eax, dword [ebp + 0x4a]
lea edx, [ebp - 0x1a2]
mov dword [ebp + 6], eax
mov eax, 0x4010ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp + 0x3e], eax
mov eax, 0x401105
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp - 0x52], eax
mov eax, 0x401111
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp - 0x66], eax
mov eax, 0x401124
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
mov dword [ebp - 0x1e], eax
lea edx, [ebp - 0x1a2]
mov eax, 0x401132
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp - 0xe], eax
mov eax, 0x401142
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp + 0x1e], eax
mov eax, 0x40114e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp + 0x7a], eax
mov eax, 0x40115d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp - 0x1a], eax
mov eax, 0x40116f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x1a2]
mov dword [ebp + 0x22], eax
mov eax, 0x4010d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov dword [ebp + 0x4e], eax
lea eax, [ebp - 0x2a6]
push eax
call dword [ebp - 0x52]
mov dword [ebp + 0xe], eax
cmp eax, 0xffffffff
jne 0x4017b6
lea eax, [ebp - 0x2a6]
call fcn.0040143e
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 0xe]
call dword [ebp - 0x66]
mov dword [ebp + 0x2a], eax
test eax, eax
jne 0x4017d8
lea eax, [ebp - 0x2a6]
call fcn.0040143e
push 0
push 0
push 0
push 4
push dword [ebp + 0x2a]
call dword [ebp - 0x1e]
mov dword [ebp - 6], eax
test eax, eax
jne 0x4017f8
lea eax, [ebp - 0x2a6]
call fcn.0040143e
mov eax, dword [ebp - 6]
add eax, dword [0x401015]
mov dword [ebp + 0x7e], eax
cmp dword [eax], 0x4181996
je 0x401817
lea eax, [ebp - 0x2a6]
call fcn.00401429
mov eax, dword [ebp + 0x7e]
add eax, 0x48
mov dword [ebp + 0x3a], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x3a]
shl eax, 4
add edx, eax
mov eax, dword [ebp + 0x7e]
mov dword [ebp - 0x5a], edx
mov eax, dword [eax + 4]
push eax
push 0x40
call dword [ebp + 0x3e]
mov dword [ebp + 0x76], eax
test eax, eax
jne 0x40184f
lea eax, [ebp - 0x2a6]
call fcn.00401404
push 0x10004
push 0
call dword [ebp + 0x3e]
mov dword [ebp + 0x6e], eax
test eax, eax
jne 0x40186b
lea eax, [ebp - 0x2a6]
call fcn.00401404
mov ecx, dword [ebp + 0x7e]
mov esi, dword [ebp + 6]
mov edi, dword [ebp + 0x76]
mov ecx, dword [ecx + 8]
mov eax, dword [ebp + 0x7e]
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [eax + 0x38]
mov dword [ebp + 0x5a], eax
cmp eax, 1
jne 0x4018ea
mov ebx, dword [ebp + 0x7e]
mov eax, dword [ebp + 0x7e]
mov ecx, dword [ebp + 0x6e]
mov edx, edi
mov ebx, dword [ebx + 0xc]
add edx, dword [eax + 8]
mov eax, dword [ebp - 0x5a]
call fcn.0040212c
mov dword [ebp - 0x5a], eax
test eax, eax
jne 0x4018b9
mov edx, 0xfffffffd
lea eax, [ebp - 0x2a6]
call fcn.00401589
mov ebx, dword [ebp + 0x7e]
mov edx, dword [ebp + 0x76]
mov eax, dword [ebp + 0x7e]
mov ecx, dword [ebp + 0x6e]
mov ebx, dword [ebx + 0x14]
add edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x5a]
call fcn.0040212c
mov dword [ebp - 0x5a], eax
test eax, eax
jne 0x4018ea
mov edx, 0xfffffffd
lea eax, [ebp - 0x2a6]
call fcn.00401589
mov eax, dword [ebp + 0x72]
mov eax, dword [eax + 0x38]
dec eax
mov dword [ebp + 0x62], eax
mov eax, dword [ebp + 0x72]
add eax, 0x78
mov ebx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov dword [ebp + 0x36], eax
test ebx, ebx
je 0x40190b
test edx, edx
jne 0x401916
lea eax, [ebp - 0x2a6]
call fcn.00401429
mov edi, dword [ebp + 0x76]
mov esi, dword [ebp + 0x76]
mov ecx, dword [ebp + 0x7e]
mov eax, dword [ebp + 0x76]
sub edi, dword [ebp + 6]
add eax, dword [ecx + 8]
sub esi, dword [ebp + 0x4a]
push eax
mov eax, dword [ebp - 0x2aa]
mov ecx, esi
add eax, ebx
mov ebx, edi
call fcn.00401fd9
mov edx, dword [ebp - 0x2aa]
mov eax, 0x401009
mov ebx, esi
call fcn.0040203b
mov edx, dword [ebp - 0x2aa]
mov eax, 0x40100d
mov ebx, esi
call fcn.0040203b
cmp dword [ebp + 0x5a], 1
jne 0x401992
mov ebx, dword [ebp + 0x72]
push 0xffffffffffffffff
mov eax, dword [ebp + 0x76]
mov ebx, dword [ebx + 0x34]
mov edx, dword [ebp + 0x7e]
add ebx, dword [ebp + 0x4a]
mov ecx, esi
sub eax, ebx
mov edx, dword [edx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x5a]
call fcn.00401fd9
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x18]
add dword [ebp - 0x5a], eax
call dword [ebp - 0x1a]
push 0
push 0
push eax
mov dword [ebp - 0x12], eax
call dword [ebp + 0x22]
mov eax, edi
call fcn.00401400
mov eax, dword [ebp - 0x2ae]
add dword [eax], edi
mov eax, dword [ebp + 0x3e]
mov dword [0x4013f8], eax
mov eax, dword [ebp + 0x4e]
mov dword [0x4013fc], eax
cmp dword [0x401011], 0
jne 0x401acf
lea edx, [ebp - 0x1a2]
mov eax, 0x401191
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00402049
push eax
call dword [ebx]
lea edx, [ebp - 0x1a2]
mov esi, eax
mov eax, 0x401198
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push esi
call dword [ebx]
push 0x2134
lea edx, [ebp - 0xa2]
mov dword [ebp + 0x26], eax
mov eax, 0x401266
call fcn.00402049
push eax
lea edx, [ebp - 0x1a2]
mov eax, 0x40127b
call fcn.00402049
push eax
push 0
jmp 0x401a30
cmp eax, 6
jne 0x401acf
lea edx, [ebp - 0x1a2]
mov eax, 0x40134d
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00402049
push eax
call dword [ebx]
mov ebx, eax
test eax, eax
je 0x401aa3
lea edx, [ebp - 0x1a2]
mov eax, 0x401355
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00402049
push eax
push ebx
call dword [esi]
mov dword [ebp - 0x16], eax
test eax, eax
je 0x401aa3
push 1
push 0
push 0
lea edx, [ebp - 0x1a2]
mov eax, 0x401363
call fcn.00402049
push eax
push 0
push 0
call dword [ebp - 0x16]
cmp eax, 0x20
jle 0x401aa3
xor eax, eax
call fcn.00402080
push 0x2030
lea edx, [ebp - 0xa2]
mov eax, 0x40137a
call fcn.00402049
push eax
lea edx, [ebp - 0x1a2]
mov eax, 0x401390
call fcn.00402049
push eax
push 0
call dword [ebp + 0x26]
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x20]
mov dword [ebp + 0xa], eax
cmp dword [0x401011], 0
je 0x401b19
imul eax, dword [ebp + 0x46], 0x28
add eax, dword [ebp + 0x5e]
lea ebx, [eax - 0x28]
lea eax, [ebp - 0x4e]
push eax
mov esi, dword [ebp - 0x2aa]
push 4
add esi, dword [ebx + 0xc]
push 4
inc esi
push esi
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0xa]
sub eax, dword [ebx + 0xc]
sub eax, 5
mov dword [esi], eax
lea eax, [ebp - 0x56]
push eax
push dword [ebp - 0x4e]
push 4
push esi
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0x7e]
mov esi, dword [ebp + 0x3a]
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x52], 0
mov dword [ebp - 2], eax
jmp 0x401b51
mov dword [ebp - 0x4a], 2
cmp dword [ebp - 0x4a], 4
je 0x401b4b
lea eax, [ebp - 0x56]
push eax
push dword [ebp - 0x4a]
push dword [ebp + 0x56]
push dword [ebp - 0x46]
call dword [ebp + 0x7a]
inc dword [ebp + 0x52]
add esi, 0x10
mov eax, dword [ebp + 0x52]
cmp eax, dword [ebp - 2]
jae 0x401bfa
imul edi, dword [esi], 0x28
add edi, dword [ebp + 0x5e]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 8]
ja 0x401b6e
mov eax, dword [edi + 8]
mov edx, dword [ebp + 0x62]
add edx, eax
mov eax, dword [ebp + 0x62]
not eax
and edx, eax
mov eax, dword [ebp - 0x2aa]
add eax, dword [edi + 0xc]
mov dword [ebp + 0x56], edx
mov dword [ebp - 0x46], eax
mov edx, dword [ebp + 0x7e]
mov eax, dword [esi]
cmp eax, dword [edx + 0x3c]
jne 0x401b9f
mov eax, dword [edx + 0x40]
add dword [ebp - 0x46], eax
mov eax, dword [esi + 8]
mov dword [ebp + 0x56], eax
lea eax, [ebp - 0x4a]
push eax
push 4
push dword [ebp + 0x56]
push dword [ebp - 0x46]
lea ebx, [ebp - 0x5a]
call dword [ebp + 0x7a]
push dword [ebp + 0x6e]
lea ecx, [ebp - 0x46]
push dword [esi + 8]
lea edx, [ebp - 0x2a6]
push dword [esi + 0xc]
mov eax, dword [ebp + 0x5a]
call fcn.00401f4e
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x24]
and eax, 0x80000000
and edx, 0x80000000
cmp eax, edx
je 0x401b35
test byte [esi + 4], 0x20
je 0x401b2e
mov dword [ebp - 0x4a], 0x20
jmp 0x401b35
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x24], 0
je 0x401cf1
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x2aa]
mov dword [ebp + 0x16], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x2c]
mov dword [ebp + 0x2e], eax
lea eax, [ebp - 0x42]
push eax
push 4
push dword [ebp + 0x2e]
push dword [ebp + 0x16]
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0x7e]
mov esi, dword [ebp - 0x2aa]
add esi, dword [eax + 0x24]
mov dword [ebp - 0x62], esi
jmp 0x401c3f
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401ce1
cmp esi, dword [ebp - 0x62]
jbe 0x401c57
mov edx, dword [esi + 0x10]
cmp edx, dword [esi - 4]
je 0x401c3c
mov edx, dword [ebp - 0x2aa]
add edx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edx
mov dword [ebp + 0x42], edx
call dword [eax]
mov dword [ebp - 0x2a], eax
test eax, eax
jne 0x401c7f
mov edx, dword [ebp + 0x42]
lea eax, [ebp - 0x2a6]
call fcn.00401453
mov edi, dword [ebp - 0x2aa]
add edi, dword [esi + 0x10]
jmp 0x401ca5
mov edx, eax
and edx, 0x7fffffff
shr edx, 0x10
and edx, 0xffff
movzx edx, dx
test edx, edx
je 0x401cbd
add edi, 4
mov eax, dword [edi]
test eax, eax
je 0x401c3c
test eax, 0x80000000
jne 0x401c8a
add eax, dword [ebp - 0x2aa]
lea ebx, [eax + 2]
jmp 0x401cc0
movzx ebx, ax
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x2a]
call dword [eax]
mov dword [edi], eax
test eax, eax
jne 0x401ca2
mov edx, dword [ebp + 0x42]
lea eax, [ebp - 0x2a6]
call fcn.0040148f
jmp 0x401ca2
lea eax, [ebp - 0x3e]
push eax
push dword [ebp - 0x42]
push dword [ebp + 0x2e]
push dword [ebp + 0x16]
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0x72]
mov edx, dword [ebp - 0x2aa]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0xa], edx
je 0x401ec8
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x30], 0
jne 0x401d1a
lea eax, [ebp - 0x2a6]
call fcn.00401571
mov dword [ebp - 0x3a], 4
push dword [ebp + 0x6e]
mov eax, dword [ebp + 0x7e]
xor edi, edi
lea ecx, [ebp - 0x36]
mov dword [ebp - 0x36], edi
lea ebx, [ebp - 0x5a]
push dword [eax + 0x30]
lea edx, [ebp - 0x2a6]
push dword [eax + 0x34]
mov eax, dword [ebp + 0x5a]
call fcn.00401f4e
mov ebx, dword [ebp - 0x36]
mov edx, dword [ebp + 0x7e]
mov eax, ebx
mov esi, dword [ebp - 0x2aa]
add eax, dword [edx + 0x30]
mov dword [ebp + 0x66], edi
mov dword [ebp - 0x26], eax
cmp ebx, dword [ebp - 0x26]
jb 0x401d9b
jmp 0x401eab
movzx eax, word [ebx]
add eax, 0x101
inc ebx
inc ebx
add esi, eax
jmp 0x401db4
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or eax, edx
add eax, 0x10100
add ebx, 3
jmp 0x401d71
add esi, dword [ebx]
add ebx, 4
jmp 0x401db4
mov al, byte [ebx]
inc ebx
cmp al, 1
jb 0x401daa
jbe 0x401d75
cmp al, 2
je 0x401d94
jmp 0x401dae
test al, al
je 0x401d67
movzx eax, al
inc eax
jmp 0x401d71
cmp esi, dword [ebp + 0x66]
jb 0x401ea1
cmp dword [ebp - 0x3a], 4
je 0x401dd4
lea eax, [ebp - 0x56]
push eax
mov eax, dword [ebp + 0x66]
push dword [ebp - 0x3a]
sub eax, edi
push eax
push edi
call dword [ebp + 0x7a]
mov eax, esi
sub eax, dword [ebp - 0x2aa]
mov dword [ebp + 0x6a], 0
mov dword [ebp + 0x12], eax
mov eax, dword [ebp + 0x5e]
jmp 0x401df1
inc dword [ebp + 0x6a]
add eax, 0x28
mov edx, dword [ebp + 0x6a]
cmp edx, dword [ebp + 0x46]
jge 0x401e8e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
ja 0x401e0b
mov ecx, dword [eax + 8]
mov dword [ebp + 0x32], ecx
mov ecx, dword [ebp + 0x32]
add ecx, dword [ebp + 0x62]
mov dword [ebp - 0x32], ecx
mov ecx, dword [ebp + 0x62]
mov dword [ebp - 0x2e], ecx
not dword [ebp - 0x2e]
mov ecx, dword [ebp - 0x32]
and ecx, dword [ebp - 0x2e]
add ecx, edx
mov dword [ebp + 2], ecx
cmp edx, dword [ebp + 0x12]
ja 0x401deb
mov ecx, dword [ebp + 0x12]
cmp ecx, dword [ebp + 2]
jae 0x401deb
mov edi, dword [ebp - 0x2aa]
mov eax, dword [eax + 0x24]
add edi, edx
mov edx, dword [ebp - 0x2aa]
mov dword [ebp + 0x1a], eax
add edx, dword [ebp + 2]
mov eax, dword [ebp + 0x3a]
mov dword [ebp + 0x66], edx
xor edx, edx
jmp 0x401e5d
inc edx
add eax, 0x10
cmp edx, dword [ebp - 2]
jae 0x401e6f
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x6a]
jne 0x401e59
mov eax, dword [eax + 4]
mov dword [ebp + 0x1a], eax
test byte [ebp + 0x1d], 0x80
jne 0x401e87
lea eax, [ebp - 0x3a]
push eax
mov eax, dword [ebp + 0x66]
push 4
sub eax, edi
push eax
push edi
call dword [ebp + 0x7a]
jmp 0x401e8e
mov dword [ebp - 0x3a], 4
mov eax, dword [ebp + 0x6a]
cmp eax, dword [ebp + 0x46]
jne 0x401ea1
lea eax, [ebp - 0x2a6]
call fcn.00401429
mov eax, dword [ebp - 0xa]
add dword [esi], eax
jmp 0x401d5d
cmp dword [ebp - 0x3a], 4
je 0x401ec2
lea eax, [ebp - 0x56]
push eax
mov eax, dword [ebp + 0x66]
push dword [ebp - 0x3a]
sub eax, edi
push eax
push edi
call dword [ebp + 0x7a]
push dword [ebp - 0x36]
call dword [ebp + 0x4e]
push 0
push 0
push dword [ebp - 0x12]
call dword [ebp + 0x22]
push dword [ebp + 0x6e]
call dword [ebp + 0x4e]
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x44], 0
je 0x401f1f
mov eax, dword [ebp + 0x36]
mov edx, dword [ebp - 0x2aa]
add edx, dword [eax + 0x48]
mov eax, edx
mov ebx, dword [edx + 8]
mov edx, dword [ebp + 0x7e]
mov esi, dword [ebp - 0x2aa]
add esi, dword [edx + 0x44]
mov ebx, dword [ebx]
mov dword [esi], ebx
mov esi, dword [eax + 4]
mov edx, dword [eax]
sub esi, dword [eax]
mov eax, ebx
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov ecx, esi
mov esi, edx
mov edi, eax
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
push dword [ebp - 6]
call dword [ebp - 0xe]
push dword [ebp + 0x2a]
call dword [ebp + 0x1e]
push dword [ebp + 0xe]
call dword [ebp + 0x1e]
mov eax, dword [ebp + 0x76]
mov dword [0x4013f4], eax
mov eax, dword [ebp - 0x2aa]
add eax, dword [ebp + 0xa]
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret