Function at 0x416311
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [ebp + 0x48]
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0xcc], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
ja 0x416566
mov esi, dword [esp + 0x14]
xor edi, edi
mov edx, edi
mov eax, esi
movzx esi, word [esp + 0x1c]
add eax, 0x2e
adc edx, 0
xor edi, edi
add esi, eax
movzx eax, cx
adc edi, edx
xor edx, edx
add eax, esi
adc edx, edi
cmp edx, 0
ja 0x416566
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x52]
mov dword [esp + 0x24], ecx
mov ecx, 0x2e
mov dword [esp + 0x18], ebp
mov edi, edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x30], eax
xor eax, eax
cmp word [esp + 0x20], 1
rep stosb byte es:[edi], al
mov byte [esp + 0x52], 0x50
mov byte [esp + 0x53], 0x4b
mov byte [esp + 0x54], 1
mov byte [esp + 0x55], 2
sbb eax, eax
mov byte [esp + 0x56], 0x5b
not eax
and eax, 0x14
mov byte [esp + 0x58], al
mov al, byte [esp + 0x20]
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x20]
shr ax, 8
mov byte [esp + 0x5d], al
mov al, byte [esp + 0x28]
mov byte [esp + 0x5e], al
mov eax, dword [esp + 0x28]
shr ax, 8
mov byte [esp + 0x5f], al
mov al, byte [esp + 0x2c]
mov byte [esp + 0x60], al
mov eax, dword [esp + 0x2c]
shr ax, 8
mov byte [esp + 0x61], al
lea eax, [esp + 0x62]
call fcn.00414900
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x66]
call fcn.00414900
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x6a]
call fcn.00414900
mov al, byte [esp + 0x24]
mov edx, dword [esp + 0xd0]
mov byte [esp + 0x70], 0
mov byte [esp + 0x71], 0
mov byte [esp + 0x6e], al
mov eax, dword [esp + 0x24]
shr ax, 8
mov byte [esp + 0x6f], al
mov al, byte [esp + 0x1c]
mov byte [esp + 0x72], al
mov eax, dword [esp + 0x1c]
shr ax, 8
mov byte [esp + 0x73], al
lea eax, [esp + 0x78]
call fcn.00414900
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x7c]
call fcn.00414900
mov esi, dword [ebx + 4]
lea edi, [esi + 0x2e]
cmp edi, dword [ebx + 8]
ja 0x4164e3
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [ebx + 4], edi
imul esi, ecx
imul ecx, ecx, 0x2e
add eax, esi
lea esi, [esp + 0x52]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
movzx esi, word [esp + 0x24]
test esi, esi
je 0x416543
jmp 0x4164fd
mov eax, dword [esp + 0x18]
mov dword [esp], 1
mov ecx, edi
mov edx, ebx
call fcn.00416134
test eax, eax
je 0x416556
jmp 0x4164c0
cmp dword [esp + 0x30], 0
je 0x416556
mov edi, dword [ebx + 4]
lea ebp, [esi + edi]
cmp ebp, dword [ebx + 8]
ja 0x416529
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [ebx + 4], ebp
imul edi, ecx
imul ecx, esi
mov esi, dword [esp + 0x30]
add eax, edi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x416543
mov eax, dword [esp + 0x18]
mov dword [esp], 1
mov ecx, ebp
mov edx, ebx
call fcn.00416134
test eax, eax
je 0x416556
jmp 0x41650f
movzx esi, word [esp + 0x1c]
test esi, esi
je 0x4165cb
cmp dword [esp + 0xa0], 0
jne 0x416589
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 8]
ja 0x41656d
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
xor eax, eax
jmp 0x41660e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, ebx
mov dword [esp], 0
call fcn.00416134
test eax, eax
je 0x416566
jmp 0x41655f
mov edi, dword [ebx + 4]
lea ebp, [esi + edi]
cmp ebp, dword [ebx + 8]
ja 0x4165b1
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [ebx + 4], ebp
imul edi, ecx
imul ecx, esi
mov esi, dword [esp + 0xa0]
add eax, edi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4165cb
mov eax, dword [esp + 0x18]
mov dword [esp], 1
mov ecx, ebp
mov edx, ebx
call fcn.00416134
test eax, eax
je 0x416556
jmp 0x416594
mov edi, dword [ebx + 0x14]
lea esi, [edi + 1]
cmp esi, dword [ebx + 0x18]
jbe 0x4165f3
mov eax, dword [esp + 0x18]
lea edx, [ebx + 0x10]
mov dword [esp], 1
mov ecx, esi
call fcn.00416134
test eax, eax
je 0x416556
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
lea esi, [esp + 0x4c]
imul edi, ecx
add eax, edi
mov edi, eax
mov eax, 1
rep movsb byte es:[edi], byte [esi]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret