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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
push edi
mov edi, dword [ebx + 0x1c8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
push eax
push ecx
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edi
call fcn.0049fdd0
add esp, 0xc
test eax, eax
je 0x4a0503
cmp dword [esp + 0x9c], edi
je 0x4a0400
mov ebp, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xa0]
push ecx
push ebp
push edx
push ebx
mov dword [esp + 0xb0], edi
call fcn.0049ffe0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xb0]
add esp, 0x14
cmp eax, edi
mov dword [ebx + 0xc], edx
jne 0x4a03c6
mov edi, dword [esp + 0xa8]
mov eax, dword [ebx + 0x38]
test eax, eax
lea ebp, [edi + 1]
mov dword [ebx + 0x34], ebp
je 0x4a041d
push eax
call fcn.0044d8a5
add esp, 4
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4a042d
push eax
call fcn.0044d8a5
add esp, 4
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4a043d
push eax
call fcn.0044d8a5
add esp, 4
mov eax, dword [ebx + 0x34]
lea ecx, [eax*8 + 8]
push ecx
call fcn.0044d3a4
mov edx, dword [ebx + 0x34]
shl edx, 5
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x48]
push edx
push eax
call fcn.004597a7
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x4c]
shl ecx, 4
push ecx
push edx
mov dword [ebx + 0x48], eax
call fcn.004597a7
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x34]
shl eax, 2
push eax
call fcn.0044d3a4
mov ecx, dword [ebx + 0x34]
shl ecx, 3
push ecx
mov dword [ebx + 0x40], eax
call fcn.0044d3a4
mov edx, dword [ebx + 0x34]
shl edx, 4
push edx
mov dword [ebx + 0x3c], eax
call fcn.0044d3a4
mov ecx, dword [esp + 0xb0]
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp*8], esi
mov dword [eax + ebp*8 + 4], ecx
mov edx, dword [ebx + 0x38]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov dword [edx + edi*8], eax
mov dword [edx + edi*8 + 4], ecx
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
add esp, 0x20
test ecx, ecx
jg 0x4a04eb
jl 0x4a04e7
test eax, eax
jae 0x4a04eb
xor eax, eax
xor ecx, ecx
mov edx, dword [ebx + 0x44]
shl edi, 4
mov dword [edi + edx + 8], eax
mov dword [edi + edx + 0xc], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
mov ebp, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
cmp ebp, dword [esp + 0x90]
jg 0x4a0648
mov edx, dword [esp + 0x84]
jl 0x4a0542
cmp edx, esi
jae 0x4a0648
jmp 0x4a0542
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, esi
sub ecx, edx
mov eax, edi
sbb eax, ebp
test eax, eax
jg 0x4a0564
jl 0x4a0560
cmp ecx, 0x10000
jae 0x4a0564
mov esi, edx
jmp 0x4a0577
push 0
add esi, edx
push 2
adc edi, ebp
push edi
push esi
call fcn.0044e590
mov esi, eax
mov ebp, edx
cmp esi, dword [ebx + 8]
jne 0x4a0581
cmp ebp, dword [ebx + 0xc]
je 0x4a0597
push ebp
push esi
push ebx
call fcn.004a01d0
cdq
mov ecx, eax
add esp, 0xc
or ecx, edx
jne 0x4a0859
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x4c]
push edx
push ebx
call fcn.0049fc10
add esp, 0x10
cmp eax, 0xffffff80
mov dword [esp + 0x2c], eax
mov edi, edx
jne 0x4a05bd
cmp edi, 0xffffffff
je 0x4a0861
test edi, edi
jl 0x4a0602
jg 0x4a05c7
test eax, eax
jb 0x4a0602
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0049fdb0
add esp, 0xc
test eax, eax
je 0x4a05fe
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
jmp 0x4a061c
mov eax, dword [esp + 0x2c]
test edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
jl 0x4a061c
jg 0x4a0614
test eax, eax
jb 0x4a061c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x88], edx
jl 0x4a0534
jg 0x4a0640
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x84], eax
jb 0x4a0534
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ebp
je 0x4a0697
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x88]
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x98], edi
call fcn.0049ffe0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x98]
add esp, 0x14
cmp eax, edi
mov dword [ebx + 0xc], edx
jne 0x4a0659
mov edx, dword [ebx + 8]
cmp edx, esi
jne 0x4a06a5
mov eax, dword [ebx + 0xc]
cmp eax, ebp
je 0x4a06bb
push ebp
push esi
push ebx
call fcn.004a01d0
cdq
mov ecx, eax
add esp, 0xc
or ecx, edx
jne 0x4a0859
push 0
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
call fcn.0049f960
cdq
mov ecx, eax
add esp, 0x18
or ecx, edx
jne 0x4a0859
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x1c8]
lea ecx, [esp + 0x54]
push ecx
push ebx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
call fcn.004a0230
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xb0]
lea ebp, [edx + 1]
mov edx, dword [esp + 0xa4]
push ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 8]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push esi
push ebx
call fcn.004a0350
cdq
mov ecx, eax
add esp, 0x3c
or ecx, edx
jne 0x4a0859
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4a078e
push eax
call fcn.0044d8a5
add esp, 4
mov edx, dword [ebx + 0x38]
mov dword [edx + ebp*8], esi
mov eax, dword [esp + 0x20]
mov dword [edx + ebp*8 + 4], eax
mov ecx, dword [ebx + 0x40]
mov dword [ecx + ebp*4], edi
mov edx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x84]
mov dword [edx + ebp*8], eax
mov ecx, dword [esp + 0x88]
mov dword [edx + ebp*8 + 4], ecx
mov eax, dword [ebx + 0x48]
mov edi, ebp
shl edi, 5
add edi, eax
mov ecx, 8
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
shl ebp, 4
add edx, ebp
mov dword [edx], eax
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xa8]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x44]
shl eax, 4
mov dword [eax + edx + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x14]
add ebp, ecx
mov dword [ebp], edx
mov dword [ebp + 4], esi
mov ecx, dword [ebx + 0x44]
mov edi, dword [eax + ecx + 0x18]
lea ecx, [eax + ecx + 0x18]
sub edi, edx
mov dword [ecx], edi
sbb dword [ecx + 4], esi
mov edx, dword [ebx + 0x44]
mov ecx, dword [eax + edx + 0x1c]
test ecx, ecx
lea eax, [eax + edx + 0x18]
jg 0x4a0857
jl 0x4a084a
cmp dword [eax], 0
jae 0x4a0857
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff80
pop ebx
add esp, 0x64
ret