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

Disassembly:
sub esp, 0x64
mov eax, 1
mov dword [esp + 0x10], edx
push ebx
mov ebx, dword [esp + 0x74]
push esi
push edi
sub eax, ebx
push ebp
mov ebx, edx
mov dword [esp + 0x1c], eax
mov eax, ecx
and eax, 0x7f00
and ecx, 0xff
shr eax, 6
mov esi, ecx
mov ebp, dword [eax + 0x4902b0]
movsx edx, byte [ebp + 0x1c]
mov byte [0x4b6790], 0
cmp edx, 1
jne 0x43eeb0
mov ecx, dword [ebp + 0xc]
mov edi, 0x100
cmp byte [ecx + 0x3c], 3
sete dl
sub edi, esi
mov byte [0x4b6790], dl
mov eax, dword [ecx + 0xb8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
imul eax, edi
cdq
and edx, 0xff
mov dword [esp + 0x34], edi
add eax, edx
mov edi, dword [esp + 0x7c]
sar eax, 8
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov edx, dword [ecx + 0xbc]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x24], edx
mov edx, dword [edi]
imul esi, dword [esp + 0x24]
sar esi, 8
mov dword [esp + 0x38], edx
neg esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x10], eax
js 0x43ecc3
mov al, byte [ebp + 0x1c]
cmp al, 1
jne 0x43ecc3
mov dword [ebx], ebp
mov dword [ebx + 4], 1
mov eax, dword [ebp + 8]
sar eax, 8
mov dword [ebx + 8], eax
mov esi, dword [ebx + 0x238]
mov edx, dword [ebx + 0x14]
mov dword [edx + 4], esi
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + 4]
mov dword [eax], esi
mov eax, dword [ebx + 8]
cdq
idiv dword [esp + 0x78]
lea esi, [esp + 0x24]
push esi
lea eax, [edx + edx*8]
shl eax, 4
mov edx, dword [ebx + 0x14]
add eax, 0x4abc20
mov dword [edx + 0xfc], eax
mov edx, dword [ebx + 0x14]
call fcn.0043f410
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x10], ecx
mov ebp, dword [ebp]
mov ecx, dword [ebp + 0xc]
mov al, byte [ebp + 0x1c]
cmp al, 1
jne 0x43ecac
mov eax, dword [ecx + 0xb8]
mov edx, dword [esp + 0x2c]
add edx, eax
mov dword [esp + 0x2c], edx
mov esi, dword [ecx + 0xbc]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
add ebx, 0x224
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jge 0x43ec24
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jl 0x43ee92
mov ecx, dword [ebp + 0x2c]
cmp ecx, 2
jne 0x43ed01
lea esi, [esp + 0x24]
lea edi, [esp + 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx - 0x210]
mov dword [ecx + 4], eax
jmp 0x43ed8b
mov al, byte [0x46d774]
lea esi, [esp + 0x24]
lea edi, [esp + 0x4c]
mov ecx, 0xa
mov byte [0x46a198], al
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x46d774]
mov ecx, dword [esp + 0x2c]
test eax, eax
mov eax, dword [ebp + 0x28]
jne 0x43ed3f
add eax, ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x24]
add eax, edx
mov dword [esp + 0x58], eax
jmp 0x43ed50
sub ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
sub eax, dword [ebp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
lea edx, [eax + eax*4]
xor eax, eax
mov dword [esp + edx*8 + 0x44], eax
lea ecx, [edx*8]
mov edx, dword [0x46d774]
nop
mov dword [esp + ecx + 0x48], eax
nop
mov ecx, dword [ebx + edx*4 + 0x14]
lea eax, [ebx + edx*4 + 0x14]
mov edx, dword [ebx - 0x210]
mov dword [edx], ecx
mov edx, dword [ebx - 0x210]
mov eax, dword [eax]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x43f2ea
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x54]
add esi, dword [eax + 0xb8]
mov dword [esp + 0x2c], esi
mov eax, dword [eax + 0xbc]
mov dword [esp + 0x24], eax
add edi, dword [edx + 0xb8]
mov dword [esp + 0x54], edi
mov eax, dword [edx + 0xbc]
mov dword [esp + 0x4c], eax
mov dword [ebx], ebp
movsx ecx, byte [ebp + 0x1c]
mov dword [ebx + 4], ecx
mov eax, dword [ebp + 8]
sar eax, 8
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 0x238]
mov edx, dword [ebx + 0x14]
mov dword [edx + 4], ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x23c]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov eax, dword [ebx + 8]
cdq
idiv dword [esp + 0x78]
mov ecx, dword [ebx + 0x14]
lea eax, [edx + edx*8]
shl eax, 4
add eax, 0x4abc20
mov dword [ecx + 0xfc], eax
mov eax, dword [ebx + 8]
cdq
idiv dword [esp + 0x78]
mov ecx, dword [ebx + 0x18]
nop
lea eax, [edx + edx*8]
lea edx, [esp + 0x24]
shl eax, 4
push edx
add eax, 0x4acf40
mov dword [ecx + 0xfc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x14]
call fcn.0043f410
lea ecx, [esp + 0x4c]
mov edx, dword [ebx + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0043f410
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jg 0x43ee70
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x10], eax
add ebx, 0x224
mov ebp, dword [ebp]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jge 0x43ed97
jmp 0x43f2ea
mov eax, dword [ebx - 0x210]
mov dword [eax], 0
mov eax, dword [ebx - 0x210]
mov dword [eax + 4], 0
jmp 0x43f30e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
nop
lea edi, [edx*4]
lea eax, [edx + edx*4]
mov dword [esp + 0x14], edi
mov edi, 0x100
mov edx, dword [esp + 0x14]
lea ecx, [eax*8]
sub edi, esi
mov eax, dword [ebp + edx + 0xc]
mov eax, dword [eax + 0xb8]
imul eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + ecx + 0x2c], eax
mov dword [esp + ecx + 0x30], 0
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x43ef2c
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x54], eax
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x58], edx
jmp 0x43ef42
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x28]
sub eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x24]
neg eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x7c]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0xbc]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
nop
mov edx, dword [eax + 0xbc]
mov eax, esi
imul eax, dword [esp + 0x24]
imul esi, edx
sar eax, 8
mov dword [esp + 0x4c], edx
neg eax
sar esi, 8
mov dword [esp + 0x28], eax
neg esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x50], esi
dec eax
mov dword [esp + 0x10], eax
js 0x43f0c4
mov al, byte [ebp + 0x1c]
cmp al, 2
jne 0x43f0c4
mov dword [ebx], ebp
mov dword [ebx + 4], 2
mov eax, dword [ebp + 8]
sar eax, 8
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x238]
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov esi, dword [ebx + 0x23c]
mov ecx, dword [ebx + 0x18]
mov dword [ecx + 4], esi
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov eax, dword [ebx + 8]
cdq
idiv dword [esp + 0x78]
mov ecx, dword [ebx + 0x14]
lea eax, [edx + edx*8]
shl eax, 4
add eax, 0x4abc20
mov dword [ecx + 0xfc], eax
mov eax, dword [ebx + 8]
cdq
idiv dword [esp + 0x78]
mov ecx, dword [ebx + 0x18]
nop
lea eax, [edx + edx*8]
lea edx, [esp + 0x24]
shl eax, 4
push edx
add eax, 0x4acf40
mov dword [ecx + 0xfc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x14]
call fcn.0043f410
lea ecx, [esp + 0x4c]
mov edx, dword [ebx + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0043f410
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jg 0x43f06b
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x10], eax
add ebx, 0x224
mov ebp, dword [ebp]
mov esi, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov edx, dword [eax + 0xb8]
add esi, edx
mov dword [esp + 0x2c], esi
mov edx, dword [eax + 0xbc]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], edx
add eax, dword [ecx + 0xb8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + 0xbc]
dec eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], eax
test eax, eax
jge 0x43efbd
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x43f2ea
mov eax, dword [ebp + 0x2c]
cmp eax, 1
jne 0x43f190
mov eax, dword [ebx - 0x210]
mov dword [esp + 0x44], eax
mov ecx, dword [ebx - 0x20c]
mov dword [esp + 0x48], ecx
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx - 0x210]
mov dword [eax + 4], edx
mov eax, dword [ebx - 0x210]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx - 0x20c]
mov dword [ecx + 4], esi
mov eax, dword [ebx - 0x20c]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov edx, dword [ebx - 0x210]
mov ecx, dword [ebx - 0x20c]
mov eax, dword [edx + 0xc]
mov esi, dword [eax + 0xdc]
mov eax, dword [edi]
sub esi, eax
mov eax, dword [esp + 0x30]
add esi, eax
mov eax, dword [esp + 0x34]
and eax, 0xfffffffe
imul esi, dword [eax*2 + 0x465d98]
mov eax, dword [0x45f5bc]
and eax, 0xfffffffe
shl eax, 0xf
add esi, eax
mov dword [edx + 0x34], esi
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0xd8]
mov eax, dword [edi]
sub edx, eax
mov edi, dword [esp + 0x30]
add edx, edi
mov eax, dword [esp + 0x34]
and eax, 0xfffffffe
imul edx, dword [eax*2 + 0x465d98]
mov eax, dword [0x45f5bc]
and eax, 0xfffffffe
shl eax, 0xf
add edx, eax
mov dword [ecx + 0x30], edx
jmp 0x43f1fe
mov eax, dword [esp + 0x80]
cmp eax, 1
jne 0x43f1ab
lea esi, [esp + 0x4c]
lea edi, [esp + 0x24]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ebx - 0x210]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov esi, dword [ebx + 0x14]
mov ecx, dword [edx + ebx - 0x210]
mov dword [ecx + 4], esi
mov eax, dword [edx + ebx - 0x210]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov eax, ebx
sub eax, edx
mov ecx, dword [eax - 0x20c]
mov dword [ecx + 4], ecx
mov dword [ecx], ecx
mov eax, dword [ecx + 0x38]
mov dword [ecx + 0x28], eax
mov edx, dword [ecx + 0x40]
mov dword [ecx + 0x30], edx
mov esi, dword [ecx + 0x44]
mov dword [ecx + 0x34], esi
mov eax, dword [ecx + 0x3c]
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x43f2cf
mov al, byte [ebp + 0x1c]
cmp al, 1
jne 0x43f2cf
mov dword [ebx], ebp
mov dword [ebx + 4], 1
mov eax, dword [ebp + 8]
sar eax, 8
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x238]
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov eax, dword [ebx + 8]
cdq
idiv dword [esp + 0x78]
mov ecx, dword [ebx + 0x14]
lea eax, [edx + edx*8]
shl eax, 4
add eax, 0x4abc20
mov dword [ecx + 0xfc], eax
mov eax, dword [ebx + 8]
cdq
idiv dword [esp + 0x78]
mov ecx, dword [ebx + 0x18]
nop
lea eax, [edx + edx*8]
lea edx, [esp + 0x24]
shl eax, 4
push edx
add eax, 0x4acf40
mov dword [ecx + 0xfc], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x14]
call fcn.0043f410
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x10], ecx
mov ebp, dword [ebp]
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 0x1c]
mov dword [esp + 0x18], eax
cmp dl, 1
jne 0x43f2b8
mov ecx, dword [eax + 0xb8]
mov edx, dword [esp + 0x2c]
add edx, ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0xbc]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x10]
add ebx, 0x224
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jge 0x43f20a
mov eax, dword [ebx - 0x210]
mov dword [eax], 0
mov eax, dword [ebx - 0x210]
mov dword [eax + 4], 0
jmp 0x43f30e
mov eax, dword [ebx - 0x210]
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebx - 0x210]
mov dword [eax + 4], ecx
mov edx, dword [ebx - 0x20c]
mov dword [edx], ecx
mov edx, dword [ebx - 0x20c]
mov dword [edx + 4], ecx
mov esi, dword [0x45f5b8]
mov eax, dword [esp + 0x20]
shl esi, 0x10
mov edx, dword [esp + 0x78]
mov dword [eax + 0x10], esi
test edx, edx
jle 0x43f3f6
mov edi, 0x4b2bf0
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 4]
cmp ecx, 2
jne 0x43f3b7
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x1c], 1
mov ebp, dword [ecx]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov bl, byte [edx + 0x3c]
mov edx, dword [edi]
test bl, bl
sete bl
cmp dword [ecx + 0x24], edx
mov cl, byte [ecx + 0x2c]
setg dl
shl byte [esp + 0x1c], cl
mov cl, byte [esp + 0x1c]
test cl, 0x50
je 0x43f382
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
setge cl
test dl, dl
jne 0x43f39f
test bl, bl
je 0x43f3b7
test cl, cl
jne 0x43f3b7
jmp 0x43f39f
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 4], 2
jne 0x43f3b7
cmp byte [ebp + 0x1e], 0
setg cl
test dl, dl
jne 0x43f39f
test bl, bl
je 0x43f3b7
test cl, cl
jne 0x43f3b7
movsx edx, byte [0x46a198]
shl edx, 2
mov ecx, eax
sub ecx, edx
mov ebx, dword [ecx + 0x18]
mov byte [ebx + 0x100], 0
mov ecx, dword [eax + 0x10]
cmp esi, ecx
jle 0x43f3c2
mov esi, ecx
jmp 0x43f3c5
mov dword [eax + 0x10], esi
mov ecx, dword [eax + 0x238]
mov ecx, dword [ecx + 0x4c]
cmp esi, ecx
jl 0x43f3e0
mov edx, dword [eax + 0x14]
cmp dword [edx + 0x4c], ecx
jl 0x43f3e0
mov byte [eax + 0xc], 1
jmp 0x43f3e4
mov byte [eax + 0xc], 0
add edi, 4
add eax, 0x224
dec dword [esp + 0x14]
jne 0x43f333
pop ebp
mov dword [0x4b2b58], esi
pop edi
pop esi
pop ebx
add esp, 0x64
ret 0xc