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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov al, byte [esi]
xor ecx, ecx
mov cl, byte [esi + 1]
xor edx, edx
mov dl, byte [esi + 2]
push edi
push 1
shl eax, 8
xor ebx, ebx
add eax, ecx
xor ecx, ecx
mov cl, byte [esi + 3]
shl eax, 8
add eax, edx
push ebx
shl eax, 8
push ebx
add eax, ecx
push eax
call fcn.00427b80
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov bl, byte [esi + 5]
xor ecx, ecx
mov cl, byte [esi + 4]
push 1
mov edi, ebx
xor ebx, ebx
mov bl, byte [esi + 6]
shl ecx, 8
add ecx, edi
shl ecx, 8
mov edi, ebx
xor ebx, ebx
mov bl, byte [esi + 7]
add ecx, edi
shl ecx, 8
mov edi, ebx
mov ebx, dword [esp + 0x18]
add ecx, edi
xor edi, edi
add eax, ecx
adc edx, edi
mov edi, dword [esp + 0x1c]
mov dword [edi + 4], edx
xor edx, edx
mov dword [edi], eax
mov dl, byte [esi + 8]
add esi, 8
xor eax, eax
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 2]
push ebx
shl edx, 8
push ebx
add edx, eax
xor eax, eax
mov al, byte [esi + 3]
shl edx, 8
add edx, ecx
shl edx, 8
add edx, eax
push edx
call fcn.00427b80
xor ecx, ecx
mov cl, byte [esi + 4]
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov bl, byte [esi + 5]
shl ecx, 8
mov ebp, ebx
add ecx, ebp
shl ecx, 8
xor ebx, ebx
mov bl, byte [esi + 6]
mov ebp, ebx
xor ebx, ebx
mov bl, byte [esi + 7]
add ecx, ebp
shl ecx, 8
push 1
mov ebp, ebx
mov ebx, dword [esp + 0x18]
add ecx, ebp
xor ebp, ebp
add eax, ecx
adc edx, ebp
mov dword [edi + 0xc], edx
xor edx, edx
mov dword [edi + 8], eax
mov dl, byte [esi + 8]
add esi, 8
xor eax, eax
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 2]
push ebx
shl edx, 8
push ebx
add edx, eax
xor eax, eax
mov al, byte [esi + 3]
shl edx, 8
add edx, ecx
shl edx, 8
add edx, eax
push edx
call fcn.00427b80
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov bl, byte [esi + 5]
xor ecx, ecx
mov cl, byte [esi + 4]
mov ebp, ebx
xor ebx, ebx
mov bl, byte [esi + 6]
shl ecx, 8
add ecx, ebp
shl ecx, 8
mov ebp, ebx
xor ebx, ebx
mov bl, byte [esi + 7]
add ecx, ebp
shl ecx, 8
mov ebp, ebx
add ecx, ebp
xor ebp, ebp
add eax, ecx
adc edx, ebp
mov dword [edi + 0x14], edx
xor edx, edx
mov dword [edi + 0x10], eax
mov dl, byte [esi + 8]
add esi, 8
xor eax, eax
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 2]
shl edx, 8
add edx, eax
xor eax, eax
mov al, byte [esi + 3]
shl edx, 8
add edx, ecx
shl edx, 8
xor ecx, ecx
add edx, eax
xor edx, edx
mov dl, byte [esi + 4]
xor eax, eax
mov al, byte [esi + 5]
shl edx, 8
add edx, eax
shl edx, 8
xor eax, eax
mov al, byte [esi + 6]
add edx, eax
shl edx, 8
mov ecx, edx
xor edx, edx
mov dl, byte [esi + 7]
xor eax, eax
add esi, 8
add esi, 8
add esi, 4
add esi, 4
add ecx, edx
mov dword [edi + 0x20], ecx
mov al, byte [esi - 0x10]
xor ecx, ecx
mov cl, byte [esi - 0xf]
xor edx, edx
mov dl, byte [esi - 0xe]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
xor ecx, ecx
mov cl, byte [esi - 0xd]
shl eax, 8
xor edx, edx
add eax, ecx
xor eax, eax
mov al, byte [esi - 0xc]
xor ecx, ecx
mov cl, byte [esi - 0xb]
shl eax, 8
add eax, ecx
xor ecx, ecx
mov cl, byte [esi - 0xa]
shl eax, 8
add eax, ecx
shl eax, 8
mov edx, eax
xor eax, eax
mov al, byte [esi - 9]
xor ecx, ecx
add edx, eax
mov dword [edi + 0x24], edx
mov cl, byte [esi - 8]
xor edx, edx
mov dl, byte [esi - 7]
xor eax, eax
mov al, byte [esi - 6]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [esi - 5]
shl ecx, 8
add ecx, eax
shl ecx, 8
xor eax, eax
add ecx, edx
mov dword [edi + 0x28], ecx
mov al, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
xor edx, edx
mov dl, byte [esi - 2]
shl eax, 8
add eax, ecx
xor ecx, ecx
mov cl, byte [esi - 1]
shl eax, 8
add eax, edx
shl eax, 8
xor edx, edx
add eax, ecx
mov dword [edi + 0x2c], eax
mov dl, byte [esi]
xor eax, eax
mov al, byte [esi + 1]
shl edx, 8
add edx, eax
shl edx, 8
xor ecx, ecx
mov cl, byte [esi + 2]
add edx, ecx
xor eax, eax
mov al, byte [esi + 3]
shl edx, 8
xor ecx, ecx
add esi, 4
add esi, 4
add esi, 4
add esi, 4
add edx, eax
mov dword [edi + 0x30], edx
mov cl, byte [esi - 0xc]
xor edx, edx
mov dl, byte [esi - 0xb]
xor eax, eax
mov al, byte [esi - 0xa]
add esi, 4
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [esi - 0xd]
shl ecx, 8
add ecx, eax
shl ecx, 8
xor eax, eax
add ecx, edx
mov dword [edi + 0x34], ecx
mov al, byte [esi - 0xc]
xor ecx, ecx
mov cl, byte [esi - 0xb]
xor edx, edx
mov dl, byte [esi - 0xa]
shl eax, 8
add eax, ecx
xor ecx, ecx
mov cl, byte [esi - 9]
shl eax, 8
add eax, edx
shl eax, 8
xor edx, edx
add eax, ecx
mov dword [edi + 0x38], eax
mov dl, byte [esi - 8]
xor eax, eax
mov al, byte [esi - 7]
xor ecx, ecx
mov cl, byte [esi - 6]
shl edx, 8
add edx, eax
xor eax, eax
mov al, byte [esi - 5]
shl edx, 8
add edx, ecx
shl edx, 8
xor ecx, ecx
add edx, eax
mov dword [edi + 0x3c], edx
mov cl, byte [esi - 4]
xor edx, edx
mov dl, byte [esi - 3]
xor eax, eax
mov al, byte [esi - 2]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [esi - 1]
shl ecx, 8
add ecx, eax
shl ecx, 8
xor eax, eax
add ecx, edx
mov dword [edi + 0x40], ecx
mov al, byte [esi]
xor ecx, ecx
mov cl, byte [esi + 1]
xor edx, edx
mov dl, byte [esi + 2]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
xor ecx, ecx
mov cl, byte [esi + 3]
shl eax, 8
add esi, 4
add eax, ecx
mov dword [edi + 0x44], eax
movsx edx, byte [esi]
mov dword [edi + 0x48], edx
movsx eax, byte [esi + 1]
mov dword [edi + 0x4c], eax
inc esi
movsx ecx, byte [esi + 1]
mov dword [edi + 0x50], ecx
inc esi
movsx edx, byte [esi + 1]
mov dword [edi + 0x54], edx
inc esi
movzx ax, byte [esi + 1]
movzx cx, byte [esi + 2]
inc esi
add esi, 2
add esi, 2
shl eax, 8
add esi, 2
add esi, 2
add eax, ecx
and eax, 0xffff
mov dword [edi + 0x5c], eax
movzx dx, byte [esi - 6]
movzx ax, byte [esi - 5]
add esi, 2
shl edx, 8
add edx, eax
and edx, 0xffff
mov dword [edi + 0x58], edx
movzx cx, byte [esi - 6]
movzx dx, byte [esi - 5]
shl ecx, 8
add ecx, edx
and ecx, 0xffff
mov dword [edi + 0x60], ecx
movzx ax, byte [esi - 4]
movzx cx, byte [esi - 3]
shl eax, 8
add eax, ecx
and eax, 0xffff
mov dword [edi + 0x64], eax
movzx dx, byte [esi - 2]
movzx ax, byte [esi - 1]
shl edx, 8
add edx, eax
and edx, 0xffff
mov dword [edi + 0x68], edx
movsx ecx, byte [esi]
mov dword [edi + 0x6c], ecx
movsx edx, byte [esi + 1]
mov dword [edi + 0x70], edx
inc esi
movzx ax, byte [esi + 1]
movzx cx, byte [esi + 2]
inc esi
xor edx, edx
add esi, 2
shl eax, 8
add eax, ecx
and eax, 0xffff
mov dword [edi + 0x74], eax
mov dl, byte [esi]
xor eax, eax
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 2]
shl edx, 8
add edx, eax
xor eax, eax
mov al, byte [esi + 3]
shl edx, 8
add edx, ecx
shl edx, 8
add edx, eax
mov dword [edi + 0x78], edx
mov eax, dword [edi + 0x70]
mov ebx, dword [esp + 0x14]
add esi, 4
cmp eax, ebx
lea eax, [esi + 6]
jne 0x40cd5e
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
pop edi
pop esi
pop ebp
pop ebx
ret