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

Disassembly:
push ebx
push ecx
push esi
push edi
enter 0x2e4, 0
push eax
push edx
sub ebp, 0x82
lea edx, [ebp - 0x15e]
mov eax, 0x4010c1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00401da9
push eax
call dword [ebx]
lea edx, [ebp - 0x15e]
mov edi, eax
mov ebx, eax
mov eax, 0x4010e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push edi
call dword [esi]
mov dword [ebp - 0x26], eax
cmp dword [ebp - 0x266], 0
jne 0x401471
push 0
call dword [ebp - 0x26]
mov dword [ebp - 0x266], eax
lea edx, [ebp - 0x15e]
mov eax, 0x4010f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
push 0x104
mov dword [ebp - 0x56], eax
lea eax, [ebp - 0x262]
push eax
push dword [ebp - 0x266]
call dword [ebp - 0x56]
mov eax, dword [ebp - 0x266]
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 + 0x36], eax
mov eax, dword [edx + 0xc]
mov dword [ebp + 0x3a], eax
mov eax, dword [ebp - 0x266]
mov dword [ebp + 0x62], edx
add eax, dword [ebp + 0x3a]
lea edx, [ebp - 0x15e]
mov dword [ebp - 0x5a], eax
mov eax, 0x4010ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp + 0x4a], eax
mov eax, 0x401105
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp - 0x1e], eax
mov eax, 0x401111
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp - 0x1a], eax
mov eax, 0x401124
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
mov dword [ebp - 0x22], eax
lea edx, [ebp - 0x15e]
mov eax, 0x401132
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp - 0xa], eax
mov eax, 0x401142
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp + 0x12], eax
mov eax, 0x40114e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp + 0x7a], eax
mov eax, 0x40115d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp - 0x16], eax
mov eax, 0x40116f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x15e]
mov dword [ebp + 0x1a], eax
mov eax, 0x4010d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.00401da9
push eax
push ebx
call dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp + 0x42], eax
lea eax, [ebp - 0x262]
push eax
call dword [ebp - 0x1e]
mov dword [ebp + 6], eax
cmp eax, 0xffffffff
jne 0x40162a
lea eax, [ebp - 0x262]
call fcn.004012b2
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 6]
call dword [ebp - 0x1a]
mov dword [ebp + 0x26], eax
test eax, eax
jne 0x40164c
lea eax, [ebp - 0x262]
call fcn.004012b2
push 0
push 0
push 0
push 4
push dword [ebp + 0x26]
call dword [ebp - 0x22]
mov dword [ebp + 0xe], eax
test eax, eax
jne 0x40166c
lea eax, [ebp - 0x262]
call fcn.004012b2
mov eax, dword [ebp + 0xe]
add eax, dword [0x401015]
mov dword [ebp + 0x7e], eax
cmp dword [eax], 0x4181996
je 0x40168b
lea eax, [ebp - 0x262]
call fcn.0040129d
mov eax, dword [ebp + 0x7e]
add eax, 0x48
mov dword [ebp + 0x46], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x46]
shl eax, 4
add edx, eax
mov eax, dword [ebp + 0x7e]
mov dword [ebp - 0x52], edx
mov eax, dword [eax + 4]
push eax
push 0x40
call dword [ebp + 0x4a]
mov dword [ebp + 0x76], eax
test eax, eax
jne 0x4016c3
lea eax, [ebp - 0x262]
call fcn.00401278
push 0x10004
push 0
call dword [ebp + 0x4a]
mov dword [ebp + 0x6e], eax
test eax, eax
jne 0x4016df
lea eax, [ebp - 0x262]
call fcn.00401278
mov ecx, dword [ebp + 0x7e]
mov esi, dword [ebp - 0x5a]
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 + 0x5e], eax
cmp eax, 1
jne 0x40175e
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 - 0x52]
call fcn.00401e8c
mov dword [ebp - 0x52], eax
test eax, eax
jne 0x40172d
mov edx, 0xfffffffd
lea eax, [ebp - 0x262]
call fcn.004013fd
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 - 0x52]
call fcn.00401e8c
mov dword [ebp - 0x52], eax
test eax, eax
jne 0x40175e
mov edx, 0xfffffffd
lea eax, [ebp - 0x262]
call fcn.004013fd
mov eax, dword [ebp + 0x72]
mov eax, dword [eax + 0x38]
dec eax
mov dword [ebp + 0x5a], eax
mov eax, dword [ebp + 0x72]
add eax, 0x78
mov ebx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov dword [ebp + 0x3e], eax
test ebx, ebx
je 0x40177f
test edx, edx
jne 0x40178a
lea eax, [ebp - 0x262]
call fcn.0040129d
mov edi, dword [ebp + 0x76]
mov esi, dword [ebp + 0x76]
mov ecx, dword [ebp + 0x7e]
mov eax, dword [ebp + 0x76]
sub edi, dword [ebp - 0x5a]
add eax, dword [ecx + 8]
sub esi, dword [ebp + 0x3a]
push eax
mov eax, dword [ebp - 0x266]
mov ecx, esi
add eax, ebx
mov ebx, edi
call fcn.00401d39
mov edx, dword [ebp - 0x266]
mov eax, 0x401009
mov ebx, esi
call fcn.00401d9b
mov edx, dword [ebp - 0x266]
mov eax, 0x40100d
mov ebx, esi
call fcn.00401d9b
cmp dword [ebp + 0x5e], 1
jne 0x401806
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 + 0x3a]
mov ecx, esi
sub eax, ebx
mov edx, dword [edx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x52]
call fcn.00401d39
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x18]
add dword [ebp - 0x52], eax
call dword [ebp - 0x16]
push 0
push 0
push eax
mov dword [ebp - 2], eax
call dword [ebp + 0x1a]
mov eax, edi
call fcn.00401272
mov eax, dword [ebp - 0x26a]
add dword [eax], edi
mov eax, dword [ebp + 0x4a]
mov dword [0x40126a], eax
mov eax, dword [ebp + 0x42]
mov dword [0x40126e], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x20]
mov dword [ebp + 0xa], eax
cmp dword [0x401011], 0
je 0x40187d
imul ebx, dword [ebp + 0x36], 0x28
lea eax, [ebp - 0x4a]
push eax
add ebx, dword [ebp + 0x62]
mov esi, dword [ebp - 0x266]
push 4
add esi, dword [ebx - 0x1c]
push 4
inc esi
push esi
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0xa]
sub eax, dword [ebx - 0x1c]
sub eax, 5
mov dword [esi], eax
lea eax, [ebp - 0x4e]
push eax
push dword [ebp - 0x4a]
push 4
push esi
sub ebx, 0x28
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0x7e]
mov esi, dword [ebp + 0x46]
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x52], 0
mov dword [ebp + 0x16], eax
jmp 0x4018b5
mov dword [ebp - 0x46], 2
cmp dword [ebp - 0x46], 4
je 0x4018af
lea eax, [ebp - 0x4e]
push eax
push dword [ebp - 0x46]
push dword [ebp + 0x56]
push dword [ebp - 0x42]
call dword [ebp + 0x7a]
inc dword [ebp + 0x52]
add esi, 0x10
mov eax, dword [ebp + 0x52]
cmp eax, dword [ebp + 0x16]
jae 0x40195c
imul edi, dword [esi], 0x28
add edi, dword [ebp + 0x62]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 8]
ja 0x4018d2
mov eax, dword [edi + 8]
mov edx, dword [ebp + 0x5a]
add eax, dword [ebp + 0x5a]
not edx
and eax, edx
mov dword [ebp + 0x56], eax
mov eax, dword [ebp - 0x266]
add eax, dword [edi + 0xc]
mov dword [ebp - 0x42], eax
mov edx, dword [ebp + 0x7e]
mov eax, dword [esi]
cmp eax, dword [edx + 0x3c]
jne 0x401901
mov eax, dword [edx + 0x40]
add dword [ebp - 0x42], eax
mov eax, dword [esi + 8]
mov dword [ebp + 0x56], eax
lea eax, [ebp - 0x46]
push eax
push 4
push dword [ebp + 0x56]
push dword [ebp - 0x42]
lea ebx, [ebp - 0x52]
call dword [ebp + 0x7a]
push dword [ebp + 0x6e]
lea ecx, [ebp - 0x42]
push dword [esi + 8]
lea edx, [ebp - 0x262]
push dword [esi + 0xc]
mov eax, dword [ebp + 0x5e]
call fcn.00401cae
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x24]
and edx, 0x80000000
and eax, 0x80000000
cmp edx, eax
je 0x401899
test byte [esi + 4], 0x20
je 0x401892
mov dword [ebp - 0x46], 0x20
jmp 0x401899
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x24], 0
je 0x401a53
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x266]
mov dword [ebp + 0x2e], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0x2c]
mov dword [ebp + 0x22], eax
lea eax, [ebp - 0x3e]
push eax
push 4
push dword [ebp + 0x22]
push dword [ebp + 0x2e]
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0x7e]
mov esi, dword [ebp - 0x266]
add esi, dword [eax + 0x24]
mov dword [ebp - 0x12], esi
jmp 0x4019a1
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401a43
cmp esi, dword [ebp - 0x12]
jbe 0x4019b9
mov edx, dword [esi + 0x10]
cmp edx, dword [esi - 4]
je 0x40199e
mov edx, dword [ebp - 0x266]
add edx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edx
mov dword [ebp + 0x4e], edx
call dword [eax]
mov dword [ebp - 0xe], eax
test eax, eax
jne 0x4019e1
mov edx, dword [ebp + 0x4e]
lea eax, [ebp - 0x262]
call fcn.004012c7
mov edi, dword [ebp - 0x266]
add edi, dword [esi + 0x10]
jmp 0x401a07
mov edx, eax
and edx, 0x7fffffff
shr edx, 0x10
and edx, 0xffff
movzx edx, dx
test edx, edx
je 0x401a1f
add edi, 4
mov eax, dword [edi]
test eax, eax
je 0x40199e
test eax, 0x80000000
jne 0x4019ec
add eax, dword [ebp - 0x266]
lea ebx, [eax + 2]
jmp 0x401a22
movzx ebx, ax
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0xe]
call dword [eax]
mov dword [edi], eax
test eax, eax
jne 0x401a04
mov edx, dword [ebp + 0x4e]
lea eax, [ebp - 0x262]
call fcn.00401303
jmp 0x401a04
lea eax, [ebp - 0x3a]
push eax
push dword [ebp - 0x3e]
push dword [ebp + 0x22]
push dword [ebp + 0x2e]
call dword [ebp + 0x7a]
mov eax, dword [ebp + 0x72]
mov edx, dword [ebp - 0x266]
sub edx, dword [eax + 0x34]
mov dword [ebp + 0x1e], edx
je 0x401c2a
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x30], 0
jne 0x401a7c
lea eax, [ebp - 0x262]
call fcn.004013e5
mov dword [ebp - 0x36], 4
push dword [ebp + 0x6e]
mov eax, dword [ebp + 0x7e]
xor edi, edi
lea ecx, [ebp - 0x32]
mov dword [ebp - 0x32], edi
lea ebx, [ebp - 0x52]
push dword [eax + 0x30]
lea edx, [ebp - 0x262]
push dword [eax + 0x34]
mov eax, dword [ebp + 0x5e]
call fcn.00401cae
mov ebx, dword [ebp - 0x32]
mov edx, dword [ebp + 0x7e]
mov eax, ebx
mov esi, dword [ebp - 0x266]
add eax, dword [edx + 0x30]
mov dword [ebp + 0x66], edi
mov dword [ebp - 6], eax
cmp ebx, dword [ebp - 6]
jb 0x401afd
jmp 0x401c0d
movzx eax, word [ebx]
add eax, 0x101
inc ebx
inc ebx
add esi, eax
jmp 0x401b16
movzx edx, byte [ebx + 1]
movzx eax, byte [ebx]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or eax, edx
add eax, 0x10100
add ebx, 3
jmp 0x401ad3
add esi, dword [ebx]
add ebx, 4
jmp 0x401b16
mov al, byte [ebx]
inc ebx
cmp al, 1
jb 0x401b0c
jbe 0x401ad7
cmp al, 2
je 0x401af6
jmp 0x401b10
test al, al
je 0x401ac9
movzx eax, al
inc eax
jmp 0x401ad3
cmp esi, dword [ebp + 0x66]
jb 0x401c03
cmp dword [ebp - 0x36], 4
je 0x401b36
lea eax, [ebp - 0x4e]
push eax
mov eax, dword [ebp + 0x66]
push dword [ebp - 0x36]
sub eax, edi
push eax
push edi
call dword [ebp + 0x7a]
mov eax, esi
sub eax, dword [ebp - 0x266]
mov dword [ebp + 0x6a], 0
mov dword [ebp + 2], eax
mov eax, dword [ebp + 0x62]
jmp 0x401b53
inc dword [ebp + 0x6a]
add eax, 0x28
mov edx, dword [ebp + 0x6a]
cmp edx, dword [ebp + 0x36]
jge 0x401bf0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
ja 0x401b6d
mov ecx, dword [eax + 8]
mov dword [ebp + 0x32], ecx
mov ecx, dword [ebp + 0x32]
add ecx, dword [ebp + 0x5a]
mov dword [ebp - 0x2e], ecx
mov ecx, dword [ebp + 0x5a]
mov dword [ebp - 0x2a], ecx
not dword [ebp - 0x2a]
mov ecx, dword [ebp - 0x2e]
and ecx, dword [ebp - 0x2a]
add ecx, edx
mov dword [ebp + 0x2a], ecx
cmp edx, dword [ebp + 2]
ja 0x401b4d
mov ecx, dword [ebp + 2]
cmp ecx, dword [ebp + 0x2a]
jae 0x401b4d
mov edi, dword [ebp - 0x266]
mov eax, dword [eax + 0x24]
add edi, edx
mov edx, dword [ebp - 0x266]
mov dword [ebp - 0x5e], eax
add edx, dword [ebp + 0x2a]
mov eax, dword [ebp + 0x46]
mov dword [ebp + 0x66], edx
xor edx, edx
jmp 0x401bbf
inc edx
add eax, 0x10
cmp edx, dword [ebp + 0x16]
jae 0x401bd1
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x6a]
jne 0x401bbb
mov eax, dword [eax + 4]
mov dword [ebp - 0x5e], eax
test byte [ebp - 0x5b], 0x80
jne 0x401be9
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp + 0x66]
push 4
sub eax, edi
push eax
push edi
call dword [ebp + 0x7a]
jmp 0x401bf0
mov dword [ebp - 0x36], 4
mov eax, dword [ebp + 0x6a]
cmp eax, dword [ebp + 0x36]
jne 0x401c03
lea eax, [ebp - 0x262]
call fcn.0040129d
mov eax, dword [ebp + 0x1e]
add dword [esi], eax
jmp 0x401abf
cmp dword [ebp - 0x36], 4
je 0x401c24
lea eax, [ebp - 0x4e]
push eax
mov eax, dword [ebp + 0x66]
push dword [ebp - 0x36]
sub eax, edi
push eax
push edi
call dword [ebp + 0x7a]
push dword [ebp - 0x32]
call dword [ebp + 0x42]
push 0
push 0
push dword [ebp - 2]
call dword [ebp + 0x1a]
push dword [ebp + 0x6e]
call dword [ebp + 0x42]
mov eax, dword [ebp + 0x7e]
cmp dword [eax + 0x44], 0
je 0x401c7f
mov eax, dword [ebp + 0x3e]
mov edx, dword [ebp - 0x266]
add edx, dword [eax + 0x48]
mov eax, edx
mov esi, dword [edx + 8]
mov edx, dword [ebp + 0x7e]
mov ebx, dword [ebp - 0x266]
add ebx, dword [edx + 0x44]
mov esi, dword [esi]
mov dword [ebx], esi
mov ecx, dword [eax + 4]
mov edx, dword [eax]
sub ecx, dword [eax]
mov eax, esi
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov esi, edx
mov edi, eax
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
push dword [ebp + 0xe]
call dword [ebp - 0xa]
push dword [ebp + 0x26]
call dword [ebp + 0x12]
push dword [ebp + 6]
call dword [ebp + 0x12]
mov eax, dword [ebp + 0x76]
mov dword [0x401266], eax
mov eax, dword [ebp - 0x266]
add eax, dword [ebp + 0xa]
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret