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

Disassembly:
sub esp, 0x54
mov eax, dword [0x4f7004]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x14], edx
push ebp
push esi
xorps xmm0, xmm0
mov eax, dword [ebx + 0x7c]
push edi
movlpd qword [esp + 0x40], xmm0
cmp eax, dword [ebx + 0x5c]
ja 0x429c07
jb 0x4296a9
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x58]
jae 0x429c07
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ebp, dword [esp + 0x44]
inc edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0xd8]
test ecx, ecx
jne 0x429884
cmp dword [ebx + 0xb8], ecx
jne 0x429884
mov eax, dword [ebx]
cmp word [ebx + 0x50], dx
jne 0x42978c
push 7
lea ecx, [esp + 0x44]
push ecx
push dword [ebx + 0xc]
call eax
add esp, 0xc
cmp eax, 7
jne 0x429c11
movzx eax, word [ebx + 0x30]
sub eax, 7
mov dword [ebx + 0xb8], eax
movzx eax, byte [esp + 0x40]
mov word [ebx + 0xbc], ax
movzx eax, byte [esp + 0x42]
shl ax, 8
movsx ecx, ax
movzx eax, byte [esp + 0x41]
or ecx, eax
movzx eax, byte [esp + 0x44]
shl ax, 8
movsx edx, ax
movzx eax, byte [esp + 0x43]
or edx, eax
mov dword [ebx + 0xc0], ecx
movzx eax, byte [esp + 0x46]
shl ax, 8
movsx ecx, ax
movzx eax, byte [esp + 0x45]
or ecx, eax
mov dword [ebx + 0xe0], edx
mov dword [ebx + 0xdc], ecx
push 2
mov dword [ebx + 0xd0], ecx
mov dword [ebx + 0xd4], edx
mov dword [ebx + 0xd8], 2
pop ecx
jmp 0x429880
push 0xe
lea ecx, [esp + 0x50]
push ecx
push dword [ebx + 0xc]
call eax
add esp, 0xc
cmp eax, 0xe
jne 0x429c11
movzx eax, word [ebx + 0x30]
sub eax, 0xe
mov dword [ebx + 0xb8], eax
movzx eax, byte [esp + 0x4c]
mov word [ebx + 0xbc], ax
movzx eax, byte [esp + 0x4d]
mov word [ebx + 0xbe], ax
movzx eax, byte [esp + 0x4f]
shl ax, 8
movsx ecx, ax
movzx eax, byte [esp + 0x4e]
or ecx, eax
movzx eax, byte [esp + 0x51]
shl ax, 8
mov dword [ebx + 0xc0], ecx
movsx ecx, ax
movzx eax, byte [esp + 0x50]
or ecx, eax
movzx eax, byte [esp + 0x53]
shl ax, 8
movsx edi, ax
movzx eax, byte [esp + 0x52]
or edi, eax
mov dword [ebx + 0xc4], ecx
movzx eax, byte [esp + 0x55]
shl ax, 8
movsx esi, ax
movzx eax, byte [esp + 0x54]
or esi, eax
mov dword [ebx + 0xe0], edi
movzx eax, byte [esp + 0x57]
shl ax, 8
movsx edx, ax
movzx eax, byte [esp + 0x56]
or edx, eax
mov dword [ebx + 0xe8], esi
movzx eax, byte [esp + 0x59]
shl ax, 8
movsx ecx, ax
movzx eax, byte [esp + 0x58]
mov dword [ebx + 0xdc], edx
or ecx, eax
mov dword [ebx + 0xe4], ecx
mov dword [ebx + 0xcc], ecx
push 2
pop ecx
mov dword [ebx + 0xc8], edx
mov dword [ebx + 0xd0], edi
mov dword [ebx + 0xd4], esi
mov dword [ebx + 0xd8], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x429896
cmp dword [esp + 0x1c], edx
jbe 0x429978
mov edx, ecx
mov ecx, edx
test edx, edx
je 0x429984
mov edi, dword [ebx + 0x7c]
mov esi, dword [ebx + 0x78]
cmp edi, dword [ebx + 0x5c]
ja 0x429974
jb 0x4298bc
cmp esi, dword [ebx + 0x58]
jae 0x429974
cmp dword [esp + 0x20], 0
je 0x42992c
movzx eax, word [ebx + 0x50]
and dword [esp + 0x28], 0
mov ecx, eax
and dword [esp + 0x24], 0
cmp word [esp + 0x28], ax
jae 0x42991a
mov edx, dword [esp + 0x24]
mov esi, eax
mov ebp, dword [esp + 0x20]
movzx ecx, si
mov eax, edx
imul ecx, dword [ebx + 0xd8]
sub eax, ecx
mov ax, word [ebx + eax*4 + 0xd8]
mov word [ebp + edx*2], ax
inc edx
movzx ecx, word [ebx + 0x50]
mov esi, ecx
cmp edx, ecx
jb 0x4298e4
mov ebp, dword [esp + 0x38]
mov esi, dword [ebx + 0x78]
mov edi, dword [ebx + 0x7c]
mov edx, dword [ebx + 0xd8]
movzx eax, cx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
add dword [esp + 0x1c], 0xffffffff
adc dword [esp + 0x14], 0xffffffff
xor ecx, ecx
inc ecx
add eax, ecx
mov dword [esp + 0x10], eax
adc ebp, 0
add esi, ecx
lea ecx, [edx - 1]
mov dword [esp + 0x38], ebp
adc edi, 0
mov dword [ebx + 0x78], esi
cmp dword [esp + 0x14], 0
mov edx, ecx
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0xd8], ecx
ja 0x429898
jb 0x429974
cmp dword [esp + 0x1c], 0
ja 0x429898
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
or eax, edx
je 0x429c11
test ecx, ecx
jne 0x429af3
cmp dword [ebx + 0xb8], ecx
je 0x429af3
xor esi, esi
lea eax, [esp + 0x1b]
inc esi
push esi
push eax
push dword [ebx + 0xc]
call dword [ebx]
add esp, 0xc
cmp eax, esi
jne 0x429c11
mov cl, byte [esp + 0x1b]
dec dword [ebx + 0xb8]
movzx esi, cl
mov eax, esi
shr eax, 4
mov dword [esp + 0x24], eax
mov edi, eax
test cl, cl
jns 0x4299d4
or edi, 0xfffffff0
mov dword [esp + 0x24], edi
and esi, 0xf
mov dword [esp + 0x3c], esi
mov edx, esi
mov dword [esp + 0x30], esi
test cl, 8
je 0x4299ed
or edx, 0xfffffff0
mov dword [esp + 0x30], edx
mov eax, dword [eax*4 + 0x480b80]
movzx edx, word [ebx + 0xbc]
mov ecx, dword [ebx + 0xe0]
mov dword [esp + 0x28], eax
xor eax, eax
shl edx, 2
inc eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0xc0]
mov dword [esp + 0x34], edx
push 0x10
cmp word [ebx + 0x50], ax
jne 0x429b19
mov eax, dword [esp + 0x38]
mov edx, dword [edx + 0x480b50]
imul edx, dword [ebx + 0xdc]
mov eax, dword [eax + 0x47fe50]
imul eax, dword [esp + 0x30]
add edx, eax
mov eax, ecx
imul eax, edi
sar edx, 8
add edx, eax
mov eax, 0x7fff
cmp edx, eax
cmovg edx, eax
mov eax, 0xffff8000
cmp edx, eax
cmovl edx, eax
imul ecx, dword [esp + 0x2c]
pop eax
push 0x10
sar ecx, 8
cmp ecx, eax
cmovl ecx, eax
movzx eax, word [ebx + 0xbc]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax*4 + 0x480b50]
mov eax, dword [eax*4 + 0x47fe50]
imul ecx, dword [esp + 0x30]
imul eax, edx
add ecx, eax
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x34]
sar ecx, 8
add ecx, eax
mov eax, 0x7fff
cmp ecx, eax
cmovg ecx, eax
mov eax, 0xffff8000
cmp ecx, eax
cmovl ecx, eax
mov eax, dword [esi*4 + 0x480b80]
imul eax, dword [esp + 0x38]
pop esi
sar eax, 8
cmp eax, esi
cmovl eax, esi
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xdc], edx
mov dword [ebx + 0xe0], ecx
mov dword [ebx + 0xd0], edx
mov dword [ebx + 0xd4], ecx
mov dword [ebx + 0xd8], 2
xor edx, edx
inc edx
mov eax, dword [ebx + 0x7c]
cmp eax, dword [ebx + 0x5c]
ja 0x429c11
jb 0x429b10
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x58]
jae 0x429c11
mov eax, dword [esp + 0x10]
jmp 0x4296cc
mov edi, dword [edx + 0x480b50]
imul edi, dword [ebx + 0xdc]
mov eax, dword [edx + 0x47fe50]
mov edx, dword [esp + 0x30]
imul eax, edx
add edi, eax
mov eax, ecx
imul eax, dword [esp + 0x28]
sar edi, 8
add edi, eax
mov eax, 0x7fff
cmp edi, eax
cmovg edi, eax
mov eax, 0xffff8000
cmp edi, eax
cmovl edi, eax
imul ecx, dword [esp + 0x2c]
pop eax
push 0x10
sar ecx, 8
cmp ecx, eax
cmovl ecx, eax
movzx eax, word [ebx + 0xbe]
mov dword [ebx + 0xc0], ecx
mov esi, dword [ebx + 0xe8]
mov dword [ebx + 0xdc], edx
mov edx, dword [eax*4 + 0x47fe50]
mov eax, dword [eax*4 + 0x480b50]
imul eax, dword [ebx + 0xe4]
imul edx, esi
mov dword [ebx + 0xe0], edi
mov ecx, dword [ebx + 0xc4]
mov dword [ebx + 0xd0], edi
add edx, eax
mov eax, ecx
imul eax, dword [esp + 0x34]
sar edx, 8
add edx, eax
mov eax, 0x7fff
cmp edx, eax
cmovg edx, eax
mov eax, 0xffff8000
cmp edx, eax
cmovl edx, eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0xd4], edx
mov eax, dword [eax*4 + 0x480b80]
imul eax, ecx
pop ecx
sar eax, 8
cmp eax, ecx
cmovl eax, ecx
mov dword [ebx + 0xc4], eax
mov dword [ebx + 0xe8], edx
xor edx, edx
inc edx
mov dword [ebx + 0xe4], esi
mov dword [ebx + 0xd8], edx
jmp 0x429af6
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
jmp 0x429c15
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00448363
add esp, 0x54
ret