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

Disassembly:
sub esp, 0x88
push ebx
mov ebx, eax
mov eax, dword [esp + 0x98]
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
mov ebp, dword [edi + 0x834]
mov esi, dword [edi + 0x82c]
imul ebp, eax
shl eax, 4
mov dword [esp + 0x28], eax
imul eax, esi
mov edx, ebx
shl edx, 4
add eax, edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xa0]
add eax, dword [edx]
mov ecx, esi
lea edx, [eax + 8]
mov dword [esp + 0x80], eax
lea eax, [eax + esi*8]
mov dword [esp + 0x88], eax
add eax, 8
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa4]
add eax, eax
add eax, eax
sar ecx, 1
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa0]
mov edx, dword [edx + 4]
add eax, eax
imul eax, ecx
add ebp, ebx
mov dword [esp + 0x1c], ecx
imul ebp, ebp, 0x124
add ebp, dword [edi + 0x8b8]
lea ecx, [ebx*8]
add edx, ecx
add edx, eax
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xa0]
mov edx, dword [edx + 8]
add edx, ecx
add edx, eax
cmp dword [ebp], 2
mov dword [esp + 0x94], edx
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], ecx
jne 0x4403f4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x60]
add eax, ecx
add eax, esi
add eax, edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x5c]
add ecx, esi
add ecx, dword [esp + 0x54]
mov esi, eax
sar eax, 3
add ecx, ebx
and esi, 0xf
movzx esi, word [esi*2 + 0x4d43e8]
add esi, eax
mov eax, ecx
and eax, 0xf
movzx eax, word [eax*2 + 0x4d43e8]
sar ecx, 3
add eax, ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x20], eax
shl ecx, 4
mov eax, ebx
sar eax, 1
add eax, ecx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x14]
imul eax, esi
mov dword [esp + 0x28], ecx
mov ecx, edx
sar ecx, 1
add eax, ecx
add eax, dword [edi + 0x868]
and edx, 1
add eax, dword [esp + 0x18]
and ebx, 1
lea edx, [ebx + edx*2]
sub edx, 0
lea ecx, [edi + 0x600]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], 8
je 0x44021c
sub edx, 1
push esi
push 8
push eax
lea eax, [edi + 0x600]
push eax
je 0x440211
sub edx, 1
je 0x440206
call dword [0x5093c0]
add esp, 0x10
jmp 0x440224
call dword [0x5093b0]
add esp, 0x10
jmp 0x440224
call dword [0x5093bc]
add esp, 0x10
jmp 0x440224
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], edx
mov edx, ecx
sar edx, 1
add edx, dword [esp + 0x28]
mov ebx, eax
imul edx, esi
sar ebx, 1
add edx, ebx
add edx, dword [edi + 0x868]
mov ebx, dword [esp + 0x18]
lea edx, [edx + ebx + 8]
and eax, 1
and ecx, 1
mov dword [esp + 0x14], edx
lea eax, [ecx + eax*2]
sub eax, 0
lea edx, [edi + 0x640]
mov ebx, edx
mov dword [esp + 0x34], 8
je 0x4402b5
sub eax, 1
push esi
push 8
je 0x4402a4
sub eax, 1
je 0x440293
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [0x5093c0]
add esp, 0x10
jmp 0x4402bd
mov ecx, dword [esp + 0x1c]
push ecx
push edx
call dword [0x5093b0]
add esp, 0x10
jmp 0x4402bd
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [0x5093bc]
add esp, 0x10
jmp 0x4402bd
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x28]
mov ecx, edx
sar ecx, 1
lea eax, [ecx + eax + 8]
mov ecx, dword [esp + 0x58]
imul eax, esi
mov dword [esp + 0x6c], ebx
mov ebx, ecx
sar ebx, 1
add eax, ebx
add eax, dword [edi + 0x868]
and ecx, 1
add eax, dword [esp + 0x18]
and edx, 1
lea ecx, [edx + ecx*2]
sub ecx, 0
lea ebx, [edi + 0x680]
mov dword [esp + 0x38], 8
je 0x44033a
sub ecx, 1
push esi
push 8
push eax
lea eax, [edi + 0x680]
push eax
je 0x44032f
sub ecx, 1
je 0x440324
call dword [0x5093c0]
add esp, 0x10
jmp 0x440340
call dword [0x5093b0]
add esp, 0x10
jmp 0x440340
call dword [0x5093bc]
add esp, 0x10
jmp 0x440340
mov ebx, eax
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x28]
mov edx, ecx
sar edx, 1
lea edx, [edx + eax + 8]
mov eax, dword [esp + 0x60]
imul edx, esi
mov dword [esp + 0x70], ebx
mov ebx, eax
sar ebx, 1
add edx, ebx
add edx, dword [edi + 0x868]
mov ebx, dword [esp + 0x18]
lea edx, [edx + ebx + 8]
and eax, 1
and ecx, 1
mov dword [esp + 0x18], edx
lea eax, [ecx + eax*2]
sub eax, 0
lea edx, [edi + 0x6c0]
mov ebx, edx
mov dword [esp + 0x3c], 8
je 0x4403e6
sub eax, 1
push esi
push 8
je 0x4403ce
sub eax, 1
je 0x4403b6
mov eax, dword [esp + 0x20]
push eax
push edx
call dword [0x5093c0]
add esp, 0x10
mov dword [esp + 0x74], ebx
jmp 0x440472
mov ecx, dword [esp + 0x20]
push ecx
push edx
call dword [0x5093b0]
add esp, 0x10
mov dword [esp + 0x74], ebx
jmp 0x440472
mov eax, dword [esp + 0x20]
push eax
push edx
call dword [0x5093bc]
add esp, 0x10
mov dword [esp + 0x74], ebx
jmp 0x440472
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x74], ebx
jmp 0x440472
mov ecx, edx
and ecx, 3
movzx eax, word [ecx*2 + 0x4d43e0]
mov ecx, edx
sar ecx, 1
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, ecx
and eax, 3
movzx eax, word [eax*2 + 0x4d43e0]
sar ecx, 1
add eax, ecx
mov ecx, dword [esp + 0x28]
push ecx
shl ebx, 4
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x868]
push ebx
push eax
lea ecx, [edi + 0x600]
push ecx
mov ecx, dword [ebp + 8]
lea ebx, [esp + 0x40]
call fcn.0043e060
mov ecx, dword [esp + 0x40]
lea edx, [eax + 8]
mov dword [esp + 0x78], eax
lea eax, [eax + ecx*8]
add esp, 0x10
mov dword [esp + 0x70], eax
add eax, 8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xa4]
sar eax, 1
lea ebx, [eax + ecx*8]
mov ecx, dword [esp + 0x24]
imul ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x86c]
mov edx, ecx
sar edx, 1
add eax, edx
mov dword [esp + 0x28], edx
lea edx, [edi + 0x700]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
and ecx, 1
and edx, 1
add eax, ebx
add eax, dword [esp + 0x2c]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x20], ecx
sub ecx, 0
mov dword [esp + 0x40], 8
je 0x440521
sub ecx, 1
je 0x440507
sub ecx, 1
je 0x4404ed
mov edx, dword [esp + 0x1c]
push edx
push 8
push eax
lea eax, [edi + 0x700]
push eax
call dword [0x5093c0]
add esp, 0x10
jmp 0x44052d
mov ecx, dword [esp + 0x1c]
push ecx
push 8
push eax
lea eax, [edi + 0x700]
push eax
call dword [0x5093b0]
add esp, 0x10
jmp 0x44052d
mov edx, dword [esp + 0x1c]
push edx
push 8
push eax
lea eax, [edi + 0x700]
push eax
call dword [0x5093bc]
add esp, 0x10
jmp 0x44052d
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x870]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, ebx
add eax, dword [esp + 0x2c]
sub edx, 0
mov dword [esp + 0x78], ecx
lea ecx, [edi + 0x740]
mov ebx, ecx
mov dword [esp + 0x44], 8
je 0x44059b
sub edx, 1
je 0x440587
sub edx, 1
mov edx, dword [esp + 0x1c]
push edx
push 8
push eax
push ecx
je 0x44057c
call dword [0x5093c0]
add esp, 0x10
jmp 0x4405a5
call dword [0x5093b0]
add esp, 0x10
jmp 0x4405a5
mov edx, dword [esp + 0x1c]
push edx
push 8
push eax
push ecx
call dword [0x5093bc]
add esp, 0x10
jmp 0x4405a5
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
push 0x300
mov dword [esp + 0x80], ebx
lea ebx, [edi + 0x300]
push 0
push ebx
mov dword [esp + 0x30], ebx
call fcn.0049be70
mov ecx, 5
add esp, 0xc
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ebx
mov edx, 1
shl edx, cl
test dword [ebp + 0x60], edx
je 0x4405fd
lea ebx, [edi + 0x81c]
mov edi, dword [esp + 0x20]
call fcn.0043f9c0
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
add dword [esp + 0x20], 0x80
sub ecx, 1
cmp ecx, 0xffffffff
mov dword [esp + 0x2c], ecx
jg 0x4405d3
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x58]
push eax
push ecx
push esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x7c]
mov edx, edi
mov ecx, ebx
call fcn.00443d70
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret