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

Disassembly:
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
push 0x11c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.100113d0
mov ecx, dword [ebp + 0x88]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x14], 0x10103
test ecx, ecx
jbe 0x1004946d
mov esi, dword [ebp + 0x8c]
mov edi, dword [ebx]
mov edx, esi
lea ebx, [ebx]
cmp dword [edx], edi
jg 0x1004945c
inc eax
add edx, 0x10
cmp eax, ecx
jb 0x10049450
test eax, eax
jbe 0x1004946d
shl eax, 4
lea ecx, [eax + esi - 0x10]
mov dword [esp + 0x18], ecx
jmp 0x10049475
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0xf8], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0xf4], ecx
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xa0]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
mov edi, 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0x40]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x70], edi
mov edi, dword [ebx + 0x38]
mov dword [esp + 0x74], edi
mov edi, dword [ebx + 0x3c]
mov dword [esp + 0x78], edi
mov edi, dword [ebx + 0x40]
mov dword [esp + 0x58], eax
mov eax, ecx
shr eax, 1
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x84], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0xb8], ecx
cmp edi, 8
jne 0x1004959a
mov edx, dword [esp + 0x144]
mov eax, dword [edx]
mov ecx, dword [esp + 0x148]
mov edx, dword [ecx]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0xbc], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc0], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], edx
jmp 0x1004982e
cmp edi, 0x10
jne 0x100495e8
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
inc eax
test byte [ebp + 0x18], 4
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
je 0x1004982e
imul esi, dword [esp + 0x24]
mov eax, dword [ebp + 0x98]
push esi
push 0
push eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
call fcn.100113d0
add esp, 0xc
jmp 0x1004982e
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x13c]
test cl, 1
je 0x10049639
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x98], edx
mov edx, dword [esi + 8]
mov dword [esp + 0xa8], eax
shr eax, 1
mov dword [esp + 0x94], 1
mov dword [esp + 0xa0], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
test byte [ebx + 8], 2
jne 0x10049644
test cl, 2
je 0x100496b5
movzx ecx, word [ebp + 4]
movzx edx, word [ebp]
movzx eax, word [ebp + 8]
push ecx
mov ecx, dword [esi]
push edx
push eax
mov eax, dword [ebx + 0x38]
push eax
push ecx
call fcn.100480f0
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xfc], eax
mov eax, dword [ebp]
shr edx, 1
push edx
mov edx, dword [ebx + 0x3c]
shr eax, 1
push eax
mov eax, dword [esi + 4]
shr ecx, 1
push ecx
push edx
push eax
call fcn.100480f0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
shr ecx, 1
push ecx
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 8]
shr edx, 1
push edx
mov edx, dword [esi + 8]
shr eax, 1
push eax
push ecx
push edx
call fcn.100480f0
add esp, 0x3c
mov dword [esp + 0xf0], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
inc eax
test byte [ebp + 0x18], 4
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
je 0x1004972f
mov edx, dword [ebp + 0x98]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc4], edx
xor edx, edx
mov dword [esp + 0xc8], ecx
cmp dword [ebp + 0x14], edx
jbe 0x1004972f
mov edi, edi
xor eax, eax
test ecx, ecx
jbe 0x10049729
mov esi, dword [ebx + 0x44]
imul ecx, edx
add ecx, eax
imul ecx, ecx, 0x1b4
mov ecx, dword [ecx + esi + 0x158]
mov esi, dword [esp + 0xc4]
mov edi, edx
imul edi, dword [esp + 0xc8]
add edi, eax
mov dword [esi + edi*4], ecx
mov ecx, dword [ebp + 0x10]
inc eax
cmp eax, ecx
jb 0x100496f6
inc edx
cmp edx, dword [ebp + 0x14]
jb 0x100496f0
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x12c]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x128]
mov dword [esp + 0xd0], eax
mov dword [esp + 0x108], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0xcc], edx
mov dword [esp + 0x10c], edx
cdq
mov dword [esp + 0xe0], edi
mov edi, dword [ebx + 0x130]
and edx, 7
add eax, edx
mov edx, dword [esp + 0xe8]
mov dword [esp + 0xd4], ecx
mov ecx, dword [ebx + 0x118]
mov dword [esp + 0xe4], edi
mov edi, dword [ebx + 0x14]
sar eax, 3
inc edi
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x110], ecx
sub ecx, eax
mov eax, dword [ebx + 0x12c]
mov dword [esp + 0x100], edi
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x11c], eax
mov eax, dword [ebx + 0x130]
mov dword [esp + 0x104], edi
mov edi, dword [esp + 0x14c]
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0xf0]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0xdc], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], ecx
test edi, edi
je 0x10049827
mov ecx, 0xd
lea esi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x140]
xor esi, esi
cmp dword [ebp + 0x90], esi
jbe 0x1004986c
call dword [0x10104a68]
mov edx, dword [ebp + 0x94]
cmp dword [edx + esi*8], 0
je 0x10049863
mov eax, edx
mov edx, dword [eax + esi*8 + 4]
push 0
lea ecx, [esp + 0x18]
lea eax, [eax + esi*8]
mov eax, dword [eax]
push ecx
push edi
push edx
call eax
add esp, 0x10
inc esi
cmp esi, dword [ebp + 0x90]
jb 0x10049838
call dword [0x10104a68]
cmp edi, 8
jne 0x100498c9
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x144]
mov dword [edx], ecx
test eax, eax
jg 0x10049897
mov eax, 2
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0xd0]
mov dword [ecx], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], ecx
pop ebx
add esp, 0x120
ret
cmp edi, 0x10
jne 0x10049989
xor edx, edx
test byte [ebp + 0x18], 4
je 0x10049940
mov dword [esp + 0x10], edx
cmp dword [ebp + 0x14], edx
jbe 0x10049979
mov ecx, dword [ebp + 0x10]
lea ebx, [ebx]
xor eax, eax
test ecx, ecx
jbe 0x10049934
jmp 0x10049900
mov edi, dword [esp + 0xc4]
imul ecx, edx
mov esi, edx
imul esi, dword [esp + 0x24]
mov edx, dword [ebx + 0x44]
add ecx, eax
imul ecx, ecx, 0x1b4
add esi, eax
mov esi, dword [edi + esi*4]
mov dword [ecx + edx + 0x158], esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
inc eax
cmp eax, ecx
jb 0x10049900
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [ebp + 0x14]
jb 0x100498f0
jmp 0x10049979
xor esi, esi
cmp dword [ebp + 0x14], esi
jbe 0x10049979
mov ecx, dword [ebp + 0x10]
lea ebx, [ebx]
xor eax, eax
cmp ecx, esi
jbe 0x10049973
mov edi, dword [ebx + 0x44]
imul ecx, edx
add ecx, eax
imul ecx, ecx, 0x1b4
mov dword [ecx + edi + 0x158], esi
mov ecx, dword [ebp + 0x10]
inc eax
cmp eax, ecx
jb 0x10049956
inc edx
cmp edx, dword [ebp + 0x14]
jb 0x10049950
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xf0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret