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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x114]
mov eax, dword [eax + 0x10c]
add eax, edx
lea eax, [eax*4 + 0x12]
and eax, 0xfffffff0
call fcn.0041dea0
mov ebx, dword [ebp + 8]
sub esp, eax
lea eax, [esp + 0x14]
add ebx, 0x18
shl edx, 2
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x48], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
lea eax, [ecx + 4]
mov edx, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov eax, dword [eax + 0x110]
mov dword [ebp - 0x2c], eax
jmp 0x416ee0
cmp edx, 0x24
je 0x4173b0
cmp edx, 0x12
je 0x417123
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x3c]
sub dword [ebp + 0x14], eax
lea edx, [edx + eax*2]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 0x40]
shl edx, 2
cmp dword [ebp + 0x14], 1
jle 0x417650
mov edi, dword [ebp - 0x20]
mov dword [esp + 8], edx
lea eax, [edi + eax*4]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x128]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10c]
cmp dword [ebp + 0x14], eax
cmovle eax, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x114]
lea eax, [edx + eax*4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041ad50
mov edx, dword [ebp + 8]
mov eax, ebx
shl eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x114]
mov eax, dword [eax + 0x118]
cmp edx, 0x18
mov dword [ebp - 0x40], edx
jne 0x416e90
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x44]
test ecx, ecx
jle 0x416ea2
lea esi, [esi]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
movsx esi, word [edx + 4]
sar eax, 0x10
lea eax, [edi + eax*4]
mov ecx, dword [eax]
add ecx, dword [eax + 0x5c]
mov edi, ecx
movzx ecx, cx
sar edi, 0x10
imul edi, esi
imul esi, ecx
mov ecx, dword [eax + 4]
add ecx, dword [eax + 0x58]
sar esi, 0x10
lea ebx, [edi + esi]
movsx edi, word [edx + 6]
mov esi, ecx
movzx ecx, cx
sar esi, 0x10
imul ecx, edi
imul esi, edi
movsx edi, word [edx + 8]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, dword [eax + 0x54]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0xa]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 0x50]
add ebx, esi
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0xc]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 0x4c]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0xe]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x14]
add ebx, esi
add ecx, dword [eax + 0x48]
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0x10]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x18]
add ecx, dword [eax + 0x44]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0x12]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x40]
add ebx, esi
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0x14]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x20]
add ecx, dword [eax + 0x3c]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0x16]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x24]
add ecx, dword [eax + 0x38]
add ebx, esi
mov esi, ecx
movzx ecx, cx
sar esi, 0x10
imul ecx, edi
imul esi, edi
movsx edi, word [edx + 0x18]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x28]
add ecx, dword [eax + 0x34]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
mov edi, dword [eax + 0x2c]
add edi, dword [eax + 0x30]
sar ecx, 0x10
add ecx, ebx
mov eax, edi
add esi, ecx
movsx ecx, word [edx + 0x1a]
movzx edi, di
sar eax, 0x10
add dword [ebp + 0xc], 2
imul edi, ecx
imul eax, ecx
sar edi, 0x10
add edi, eax
mov eax, 0x7fff
add esi, edi
sar esi, 5
add esi, 1
sar esi, 1
cmp esi, 0x7fff
jg 0x417105
cmp esi, 0xffff8000
mov eax, 0xffff8000
cmovge eax, esi
mov ebx, dword [ebp + 0xc]
mov word [ebx - 2], ax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
jg 0x416f60
jmp 0x416ea2
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x416ea2
movsx edx, ax
sub eax, 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
mov eax, edx
movzx edx, dx
imul edx, dword [ebp - 0x34]
sar eax, 0x10
lea eax, [ebx + eax*4]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
sar dword [ebp - 0x1c], 0x10
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
lea edx, [ebx + edx*2]
mov ebx, dword [eax]
movsx edi, word [edx]
mov esi, ebx
movzx ebx, bx
imul ebx, edi
sar esi, 0x10
imul esi, edi
mov edi, dword [eax + 4]
sar ebx, 0x10
add ebx, esi
movsx esi, word [edx + 2]
mov ecx, edi
movzx edi, di
sar ecx, 0x10
imul edi, esi
imul ecx, esi
movsx esi, word [edx + 4]
sar edi, 0x10
add ecx, edi
mov edi, dword [eax + 8]
add ecx, ebx
mov ebx, edi
movzx edi, di
imul edi, esi
sar ebx, 0x10
imul ebx, esi
movsx esi, word [edx + 6]
sar edi, 0x10
add ebx, edi
mov edi, dword [eax + 0xc]
add ebx, ecx
mov ecx, edi
movzx edi, di
imul edi, esi
sar ecx, 0x10
imul ecx, esi
movsx esi, word [edx + 8]
sar edi, 0x10
add ecx, edi
mov edi, dword [eax + 0x10]
add ecx, ebx
mov ebx, edi
movzx edi, di
imul edi, esi
sar ebx, 0x10
imul ebx, esi
movsx esi, word [edx + 0xa]
sar edi, 0x10
add ebx, edi
mov edi, dword [eax + 0x14]
add ebx, ecx
mov ecx, edi
movzx edi, di
sar ecx, 0x10
imul ecx, esi
imul edi, esi
movsx esi, word [edx + 0xc]
sar edi, 0x10
add ecx, edi
mov edi, dword [eax + 0x18]
add ecx, ebx
mov ebx, edi
movzx edi, di
imul edi, esi
sar ebx, 0x10
imul ebx, esi
movsx esi, word [edx + 0xe]
sar edi, 0x10
add ebx, edi
mov edi, dword [eax + 0x1c]
add ebx, ecx
mov ecx, edi
movzx edi, di
imul edi, esi
sar ecx, 0x10
imul ecx, esi
mov esi, dword [eax + 0x20]
sar edi, 0x10
add edi, ecx
movsx ecx, word [edx + 0x10]
mov edx, esi
movzx esi, si
add ebx, edi
mov edi, dword [eax + 0x44]
sar edx, 0x10
imul esi, ecx
imul edx, ecx
sar esi, 0x10
add esi, edx
mov edx, dword [ebp - 0x38]
add ebx, esi
mov esi, dword [ebp - 0x30]
sub edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
lea edx, [esi + edx*2]
mov esi, edi
movsx ecx, word [edx]
movzx edi, di
sar esi, 0x10
imul edi, ecx
imul esi, ecx
movsx ecx, word [edx + 2]
sar edi, 0x10
add esi, edi
add esi, ebx
mov ebx, dword [eax + 0x40]
mov edi, ebx
movzx ebx, bx
sar edi, 0x10
imul ebx, ecx
imul edi, ecx
movsx ecx, word [edx + 4]
sar ebx, 0x10
add edi, ebx
mov ebx, dword [eax + 0x3c]
add edi, esi
mov esi, ebx
movzx ebx, bx
imul ebx, ecx
sar esi, 0x10
imul esi, ecx
sar ebx, 0x10
add esi, ebx
movsx ebx, word [edx + 6]
add esi, edi
mov edi, dword [eax + 0x38]
mov ecx, edi
movzx edi, di
imul edi, ebx
sar ecx, 0x10
imul ecx, ebx
sar edi, 0x10
add ecx, edi
movsx edi, word [edx + 8]
add ecx, esi
mov esi, dword [eax + 0x34]
mov ebx, esi
movzx esi, si
imul esi, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0xa]
sar esi, 0x10
add ebx, esi
mov esi, dword [eax + 0x30]
add ebx, ecx
mov ecx, esi
movzx esi, si
imul esi, edi
sar ecx, 0x10
imul ecx, edi
mov edi, dword [eax + 0x2c]
sar esi, 0x10
add ecx, esi
movsx esi, word [edx + 0xc]
add ecx, ebx
mov ebx, edi
movzx edi, di
sar ebx, 0x10
imul edi, esi
imul ebx, esi
movsx esi, word [edx + 0xe]
movsx edx, word [edx + 0x10]
sar edi, 0x10
add ebx, edi
mov edi, dword [eax + 0x28]
add ebx, ecx
mov ecx, edi
movzx edi, di
sar ecx, 0x10
imul edi, esi
imul ecx, esi
sar edi, 0x10
add edi, ecx
mov ecx, dword [eax + 0x24]
add ebx, edi
add dword [ebp + 0xc], 2
mov eax, ecx
movzx ecx, cx
sar eax, 0x10
imul ecx, edx
imul eax, edx
sar ecx, 0x10
add ecx, eax
mov eax, 0x7fff
add ebx, ecx
sar ebx, 5
add ebx, 1
sar ebx, 1
cmp ebx, 0x7fff
jg 0x417392
cmp ebx, 0xffff8000
mov eax, 0xffff8000
cmovge eax, ebx
mov edx, dword [ebp + 0xc]
mov word [edx - 2], ax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], eax
jg 0x417141
jmp 0x416ea2
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x44]
test ebx, ebx
jle 0x416ea2
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
movsx esi, word [edx + 4]
sar eax, 0x10
lea eax, [edi + eax*4]
mov ecx, dword [eax]
add ecx, dword [eax + 0x8c]
mov edi, ecx
movzx ecx, cx
sar edi, 0x10
imul edi, esi
imul esi, ecx
mov ecx, dword [eax + 4]
add ecx, dword [eax + 0x88]
sar esi, 0x10
lea ebx, [edi + esi]
movsx edi, word [edx + 6]
mov esi, ecx
movzx ecx, cx
sar esi, 0x10
imul ecx, edi
imul esi, edi
movsx edi, word [edx + 8]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, dword [eax + 0x84]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0xa]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 0x80]
add ebx, esi
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0xc]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 0x7c]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0xe]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x14]
add ebx, esi
add ecx, dword [eax + 0x78]
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0x10]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x18]
add ecx, dword [eax + 0x74]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0x12]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x70]
add ebx, esi
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0x14]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x20]
add ecx, dword [eax + 0x6c]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0x16]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x24]
add ecx, dword [eax + 0x68]
add ebx, esi
mov esi, ecx
movzx ecx, cx
sar esi, 0x10
imul ecx, edi
imul esi, edi
movsx edi, word [edx + 0x18]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x28]
add ecx, dword [eax + 0x64]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0x1a]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x2c]
add ecx, dword [eax + 0x60]
add ebx, esi
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0x1c]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x30]
add ecx, dword [eax + 0x5c]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
movsx edi, word [edx + 0x1e]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x34]
add ecx, dword [eax + 0x58]
add ebx, esi
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0x20]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x38]
add ecx, dword [eax + 0x54]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
sar ebx, 0x10
imul ebx, edi
imul ecx, edi
movsx edi, word [edx + 0x22]
sar ecx, 0x10
add ebx, ecx
mov ecx, dword [eax + 0x3c]
add ecx, dword [eax + 0x50]
add ebx, esi
mov esi, ecx
movzx ecx, cx
imul ecx, edi
sar esi, 0x10
imul esi, edi
movsx edi, word [edx + 0x24]
sar ecx, 0x10
add esi, ecx
mov ecx, dword [eax + 0x40]
add ecx, dword [eax + 0x4c]
add esi, ebx
mov ebx, ecx
movzx ecx, cx
imul ecx, edi
sar ebx, 0x10
imul ebx, edi
mov edi, dword [eax + 0x44]
add edi, dword [eax + 0x48]
sar ecx, 0x10
add ecx, ebx
mov eax, edi
add esi, ecx
movsx ecx, word [edx + 0x26]
movzx edi, di
sar eax, 0x10
add dword [ebp + 0xc], 2
imul edi, ecx
imul eax, ecx
sar edi, 0x10
add edi, eax
mov eax, 0x7fff
add esi, edi
sar esi, 5
add esi, 1
sar esi, 1
cmp esi, 0x7fff
jg 0x417630
cmp esi, 0xffff8000
mov eax, 0xffff8000
cmovge eax, esi
mov ebx, dword [ebp + 0xc]
mov word [ebx - 2], ax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
jg 0x4173c5
jmp 0x416ea2
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], edx
lea eax, [eax + ebx*4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret