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

Disassembly:
push ebx
push ecx
push esi
push edi
enter 0x308, 0
push eax
push edx
sub ebp, 0x82
lea edx, [ebp - 0x182]
mov eax, 0x4010c0
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryA]
call fcn.00401f90
push eax
call dword [ebx]
lea edx, [ebp - 0x182]
mov esi, eax
mov ebx, eax
mov eax, 0x4010e0
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push esi
call dword [edi]
mov dword [ebp - 0x46], eax
cmp dword [ebp - 0x28a], 0
jne 0x4015d5
push 0
call dword [ebp - 0x46]
mov dword [ebp - 0x28a], eax
lea edx, [ebp - 0x182]
mov eax, 0x4010f1
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
push 0x104
mov dword [ebp - 0x36], eax
lea eax, [ebp - 0x286]
push eax
push dword [ebp - 0x28a]
call dword [ebp - 0x36]
mov eax, dword [ebp - 0x28a]
mov edx, eax
add edx, dword [eax + 0x3c]
mov dword [ebp + 0x6e], edx
movzx eax, word [edx + 0x14]
add edx, 0x18
add edx, eax
mov eax, dword [ebp + 0x6e]
movzx eax, word [eax + 6]
mov dword [ebp + 0x3a], eax
mov eax, dword [edx + 0xc]
mov dword [ebp + 0x3e], eax
mov eax, dword [ebp - 0x28a]
mov dword [ebp + 0x52], edx
add eax, dword [ebp + 0x3e]
lea edx, [ebp - 0x182]
mov dword [ebp + 0x22], eax
mov eax, 0x4010c9
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x182]
mov dword [ebp + 0x42], eax
mov eax, 0x401104
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x182]
mov dword [ebp - 0xa], eax
mov eax, 0x401110
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x182]
mov dword [ebp - 0x42], eax
mov eax, 0x401123
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
mov dword [ebp - 2], eax
lea edx, [ebp - 0x182]
mov eax, 0x401131
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x182]
mov dword [ebp - 6], eax
mov eax, 0x401141
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x182]
mov dword [ebp + 0x12], eax
mov eax, 0x40114d
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x182]
mov dword [ebp + 0x76], eax
mov eax, 0x4010d5
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push ebx
call dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp + 0x56], eax
lea eax, [ebp - 0x286]
push eax
call dword [ebp - 0xa]
mov dword [ebp + 0x26], eax
cmp eax, 0xffffffff
jne 0x401754
lea eax, [ebp - 0x286]
call fcn.00401416
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 0x26]
call dword [ebp - 0x42]
mov dword [ebp + 0x2a], eax
test eax, eax
jne 0x401776
lea eax, [ebp - 0x286]
call fcn.00401416
push 0
push 0
push 0
push 4
push dword [ebp + 0x2a]
call dword [ebp - 2]
mov dword [ebp + 0x16], eax
test eax, eax
jne 0x401796
lea eax, [ebp - 0x286]
call fcn.00401416
mov eax, dword [ebp + 0x16]
add eax, dword [0x401015]
mov dword [ebp + 0x7e], eax
cmp dword [eax], 0x4181996
je 0x4017b5
lea eax, [ebp - 0x286]
call fcn.00401401
mov eax, dword [ebp + 0x7e]
add eax, 0x48
mov dword [ebp + 0x36], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x36]
shl eax, 4
add edx, eax
mov eax, dword [ebp + 0x7e]
mov dword [ebp - 0x32], edx
mov eax, dword [eax + 4]
push eax
push 0x40
call dword [ebp + 0x42]
mov dword [ebp + 0x7a], eax
test eax, eax
jne 0x4017ed
lea eax, [ebp - 0x286]
call fcn.004013dc
push 0x10004
push 0
call dword [ebp + 0x42]
mov dword [ebp + 0x72], eax
test eax, eax
jne 0x401809
lea eax, [ebp - 0x286]
call fcn.004013dc
mov ecx, dword [ebp + 0x7e]
mov esi, dword [ebp + 0x22]
mov edi, dword [ebp + 0x7a]
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 + 0x62], eax
cmp eax, 1
jne 0x401888
mov ebx, dword [ebp + 0x7e]
mov eax, dword [ebp + 0x7e]
mov ecx, dword [ebp + 0x72]
mov edx, edi
mov ebx, dword [ebx + 0xc]
add edx, dword [eax + 8]
mov eax, dword [ebp - 0x32]
call fcn.00402074
mov dword [ebp - 0x32], eax
test eax, eax
jne 0x401857
mov edx, 0xfffffffd
lea eax, [ebp - 0x286]
call fcn.00401561
mov ebx, dword [ebp + 0x7e]
mov edx, dword [ebp + 0x7a]
mov eax, dword [ebp + 0x7e]
mov ecx, dword [ebp + 0x72]
mov ebx, dword [ebx + 0x14]
add edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x32]
call fcn.00402074
mov dword [ebp - 0x32], eax
test eax, eax
jne 0x401888
mov edx, 0xfffffffd
lea eax, [ebp - 0x286]
call fcn.00401561
mov eax, dword [ebp + 0x6e]
add eax, 0x78
mov ebx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov dword [ebp + 0x5a], eax
test ebx, ebx
je 0x40189f
test edx, edx
jne 0x4018aa
lea eax, [ebp - 0x286]
call fcn.00401401
mov edi, dword [ebp + 0x7a]
mov esi, dword [ebp + 0x7a]
mov ecx, dword [ebp + 0x7e]
mov eax, dword [ebp + 0x7a]
sub edi, dword [ebp + 0x22]
add eax, dword [ecx + 8]
sub esi, dword [ebp + 0x3e]
push eax
mov eax, dword [ebp - 0x28a]
mov ecx, esi
add eax, ebx
mov ebx, edi
call fcn.00401f20
mov edx, dword [ebp - 0x28a]
mov eax, 0x401009
mov ebx, esi
call fcn.00401f82
mov edx, dword [ebp - 0x28a]
mov eax, 0x40100d
mov ebx, esi
call fcn.00401f82
cmp dword [ebp + 0x62], 1
jne 0x401926
mov ebx, dword [ebp + 0x6e]
push 0xffffffffffffffff
mov eax, dword [ebp + 0x7a]
mov ebx, dword [ebx + 0x34]
mov edx, dword [ebp + 0x7e]
add ebx, dword [ebp + 0x3e]
mov ecx, esi
sub eax, ebx
mov edx, dword [edx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x32]
call fcn.00401f20
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x18]
add dword [ebp - 0x32], eax
mov eax, edi
call fcn.004013d7
mov eax, dword [ebp - 0x28e]
add dword [eax], edi
mov eax, dword [ebp + 0x42]
mov dword [0x4013cf], eax
mov eax, dword [ebp + 0x56]
mov dword [0x4013d3], eax
cmp dword [0x401011], 0
jne 0x401a55
lea edx, [ebp - 0x182]
mov eax, 0x401168
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryA]
call fcn.00401f90
push eax
call dword [ebx]
lea edx, [ebp - 0x182]
mov esi, eax
mov eax, 0x40116f
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push esi
call dword [ebx]
push 0x2134
lea edx, [ebp - 0x82]
mov dword [ebp + 0x2e], eax
mov eax, 0x40123d
call fcn.00401f90
push eax
lea edx, [ebp - 0x182]
mov eax, 0x401252
call fcn.00401f90
push eax
push 0
nop
nop
nop
cmp eax, 6
jne 0x401a55
lea edx, [ebp - 0x182]
mov eax, 0x401324
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryA]
call fcn.00401f90
push eax
call dword [ebx]
mov esi, eax
test eax, eax
je 0x401a29
lea edx, [ebp - 0x182]
mov eax, 0x40132c
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00401f90
push eax
push esi
call dword [ebx]
mov dword [ebp - 0xe], eax
test eax, eax
je 0x401a29
push 1
push 0
push 0
lea edx, [ebp - 0x182]
mov eax, 0x40133a
call fcn.00401f90
push eax
push 0
push 0
call dword [ebp - 0xe]
cmp eax, 0x20
jle 0x401a29
xor eax, eax
call fcn.00401fc7
push 0x2030
lea edx, [ebp - 0x82]
mov eax, 0x401351
call fcn.00401f90
push eax
lea edx, [ebp - 0x182]
mov eax, 0x401367
call fcn.00401f90
push eax
push 0
call dword [ebp + 0x2e]
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x20]
mov dword [ebp + 0x1e], eax
cmp dword [0x401011], 0
je 0x401a9f
imul eax, dword [ebp + 0x3a], 0x28
add eax, dword [ebp + 0x52]
lea ebx, [eax - 0x28]
lea eax, [ebp - 0x2a]
push eax
mov esi, dword [ebp - 0x28a]
push 4
add esi, dword [ebx + 0xc]
push 4
inc esi
push esi
call dword [ebp + 0x76]
mov eax, dword [ebp + 0x1e]
sub eax, dword [ebx + 0xc]
sub eax, 5
mov dword [esi], eax
lea eax, [ebp - 0x2e]
push eax
push dword [ebp - 0x2a]
push 4
push esi
call dword [ebp + 0x76]
mov eax, dword [ebp + 0x7e]
mov esi, dword [ebp + 0x36]
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x4e], 0
mov dword [ebp + 6], eax
jmp 0x401ad7
mov dword [ebp - 0x26], 2
cmp dword [ebp - 0x26], 4
je 0x401ad1
lea eax, [ebp - 0x2e]
push eax
push dword [ebp - 0x26]
push dword [ebp + 0x46]
push dword [ebp - 0x22]
call dword [ebp + 0x76]
inc dword [ebp + 0x4e]
add esi, 0x10
mov eax, dword [ebp + 0x4e]
cmp eax, dword [ebp + 6]
jae 0x401b74
imul edi, dword [esi], 0x28
add edi, dword [ebp + 0x52]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 8]
ja 0x401af4
mov eax, dword [edi + 8]
mov dword [ebp + 0x46], eax
mov eax, dword [ebp - 0x28a]
add eax, dword [edi + 0xc]
mov dword [ebp - 0x22], eax
mov edx, dword [ebp + 0x7e]
mov eax, dword [esi]
cmp eax, dword [edx + 0x3c]
jne 0x401b19
mov eax, dword [edx + 0x40]
add dword [ebp - 0x22], eax
mov eax, dword [esi + 8]
mov dword [ebp + 0x46], eax
lea eax, [ebp - 0x26]
push eax
push 4
push dword [ebp + 0x46]
push dword [ebp - 0x22]
lea ebx, [ebp - 0x32]
call dword [ebp + 0x76]
push dword [ebp + 0x72]
lea ecx, [ebp - 0x22]
push dword [esi + 8]
lea edx, [ebp - 0x286]
push dword [esi + 0xc]
mov eax, dword [ebp + 0x62]
call fcn.00401e95
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x24]
and eax, 0x80000000
and edx, 0x80000000
cmp eax, edx
je 0x401abb
test byte [esi + 4], 0x20
je 0x401ab4
mov dword [ebp - 0x26], 0x20
jmp 0x401abb
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x24], 0
je 0x401c59
mov dword [ebp - 0x1e], 0
push dword [ebp + 0x72]
lea ecx, [ebp - 0x1e]
lea ebx, [ebp - 0x32]
push dword [eax + 0x24]
lea edx, [ebp - 0x286]
push dword [eax + 0x28]
mov eax, dword [ebp + 0x62]
call fcn.00401e95
mov eax, dword [ebp + 0x7e]
mov edx, dword [ebp - 0x28a]
add edx, dword [eax + 0x2c]
mov eax, dword [ebp + 0x5a]
mov dword [ebp + 0x5e], edx
mov edx, dword [ebp - 0x28a]
add edx, dword [eax + 8]
mov esi, dword [ebp - 0x1e]
mov dword [ebp + 0x32], edx
jmp 0x401c01
add esi, 3
movzx ebx, word [esi - 2]
push ebx
mov eax, dword [sym.imp.kernel32.dll_GetProcAddress]
push dword [ebp - 0x12]
call dword [eax]
mov edx, eax
mov eax, dword [ebp + 0x5e]
add dword [ebp + 0x5e], 4
mov dword [eax], edx
test edx, edx
jne 0x401bf7
mov edx, dword [ebp + 0x4a]
lea eax, [ebp - 0x286]
call fcn.00401467
cmp byte [esi], 0
jne 0x401c38
add dword [ebp + 0x32], 0x14
inc esi
mov eax, dword [ebp + 0x32]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x401c53
cmp byte [esi], 0
je 0x401bfc
mov edx, dword [ebp - 0x28a]
add edx, eax
mov eax, dword [sym.imp.kernel32.dll_LoadLibraryA]
push edx
mov dword [ebp + 0x4a], edx
call dword [eax]
mov dword [ebp - 0x12], eax
test eax, eax
jne 0x401c38
mov edx, dword [ebp + 0x4a]
lea eax, [ebp - 0x286]
call fcn.0040142b
cmp byte [esi], 0x23
je 0x401bc8
mov edi, esi
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc ecx
mov ebx, esi
add esi, ecx
jmp 0x401bcf
push dword [ebp - 0x1e]
call dword [ebp + 0x56]
mov eax, dword [ebp + 0x6e]
mov edx, dword [ebp - 0x28a]
sub edx, dword [eax + 0x34]
mov dword [ebp + 0xe], edx
je 0x401e1b
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x30], 0
jne 0x401c82
lea eax, [ebp - 0x286]
call fcn.00401549
mov dword [ebp - 0x1a], 4
push dword [ebp + 0x72]
mov eax, dword [ebp + 0x7e]
xor edi, edi
lea ecx, [ebp - 0x16]
mov dword [ebp - 0x16], edi
lea ebx, [ebp - 0x32]
push dword [eax + 0x30]
lea edx, [ebp - 0x286]
push dword [eax + 0x34]
mov eax, dword [ebp + 0x62]
call fcn.00401e95
mov ebx, dword [ebp - 0x16]
mov edx, dword [ebp + 0x7e]
mov eax, ebx
mov esi, dword [ebp - 0x28a]
add eax, dword [edx + 0x30]
mov dword [ebp + 0x66], edi
mov dword [ebp - 0x3e], eax
cmp ebx, dword [ebp - 0x3e]
jb 0x401d03
jmp 0x401dfe
movzx eax, word [ebx]
add eax, 0x101
inc ebx
inc ebx
add esi, eax
jmp 0x401d1c
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 0x401cd9
add esi, dword [ebx]
add ebx, 4
jmp 0x401d1c
mov al, byte [ebx]
inc ebx
cmp al, 1
jb 0x401d12
jbe 0x401cdd
cmp al, 2
je 0x401cfc
jmp 0x401d16
test al, al
je 0x401ccf
movzx eax, al
inc eax
jmp 0x401cd9
cmp esi, dword [ebp + 0x66]
jb 0x401df4
cmp dword [ebp - 0x1a], 4
je 0x401d3c
lea eax, [ebp - 0x2e]
push eax
mov eax, dword [ebp + 0x66]
push dword [ebp - 0x1a]
sub eax, edi
push eax
push edi
call dword [ebp + 0x76]
mov eax, esi
sub eax, dword [ebp - 0x28a]
mov dword [ebp + 0x6a], 0
mov dword [ebp + 0x1a], eax
mov eax, dword [ebp + 0x52]
jmp 0x401d59
inc dword [ebp + 0x6a]
add eax, 0x28
mov edx, dword [ebp + 0x6a]
cmp edx, dword [ebp + 0x3a]
jge 0x401de1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
ja 0x401d73
mov ecx, dword [eax + 8]
mov dword [ebp + 2], ecx
mov ecx, dword [ebp + 2]
add ecx, edx
mov dword [ebp + 0xa], ecx
cmp edx, dword [ebp + 0x1a]
ja 0x401d53
mov ecx, dword [ebp + 0x1a]
cmp ecx, dword [ebp + 0xa]
jae 0x401d53
mov edi, dword [ebp - 0x28a]
mov eax, dword [eax + 0x24]
add edi, edx
mov edx, dword [ebp - 0x28a]
mov dword [ebp - 0x3a], eax
add edx, dword [ebp + 0xa]
mov eax, dword [ebp + 0x36]
mov dword [ebp + 0x66], edx
xor edx, edx
jmp 0x401db0
inc edx
add eax, 0x10
cmp edx, dword [ebp + 6]
jae 0x401dc2
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x6a]
jne 0x401dac
mov eax, dword [eax + 4]
mov dword [ebp - 0x3a], eax
test byte [ebp - 0x37], 0x80
jne 0x401dda
lea eax, [ebp - 0x1a]
push eax
mov eax, dword [ebp + 0x66]
push 4
sub eax, edi
push eax
push edi
call dword [ebp + 0x76]
jmp 0x401de1
mov dword [ebp - 0x1a], 4
mov eax, dword [ebp + 0x6a]
cmp eax, dword [ebp + 0x3a]
jne 0x401df4
lea eax, [ebp - 0x286]
call fcn.00401401
mov eax, dword [ebp + 0xe]
add dword [esi], eax
jmp 0x401cc5
cmp dword [ebp - 0x1a], 4
je 0x401e15
lea eax, [ebp - 0x2e]
push eax
mov eax, dword [ebp + 0x66]
push dword [ebp - 0x1a]
sub eax, edi
push eax
push edi
call dword [ebp + 0x76]
push dword [ebp - 0x16]
call dword [ebp + 0x56]
push dword [ebp + 0x72]
call dword [ebp + 0x56]
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x44], 0
je 0x401e66
mov eax, dword [ebp + 0x5a]
mov edx, dword [ebp - 0x28a]
add edx, dword [eax + 0x48]
mov eax, edx
mov ebx, dword [edx + 8]
mov edx, dword [ebp + 0x7e]
mov esi, dword [ebp - 0x28a]
add esi, dword [edx + 0x44]
mov ebx, dword [ebx]
mov dword [esi], ebx
mov edx, dword [eax + 4]
mov esi, dword [eax]
sub edx, dword [eax]
mov eax, ebx
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov ecx, edx
mov edi, eax
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
push dword [ebp + 0x16]
call dword [ebp - 6]
push dword [ebp + 0x2a]
call dword [ebp + 0x12]
push dword [ebp + 0x26]
call dword [ebp + 0x12]
mov eax, dword [ebp + 0x7a]
mov dword [0x4013cb], eax
mov eax, dword [ebp - 0x28a]
add eax, dword [ebp + 0x1e]
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret