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

Disassembly:
sub esp, 0x1dc
mov eax, dword [esp + 0x1e0]
mov ecx, dword [0x871740]
mov edx, dword [ecx + 0x34]
mov ecx, dword [0x86cff4]
and eax, 0xffff
imul eax, eax, 0x724
push ebx
lea ebx, [eax + edx]
mov eax, dword [ebx + 0x58]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
mov eax, dword [ebx + 0x50]
push ebp
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
jmp 0x420f30
mov ebx, dword [esp + 0x14]
lea ebx, [ebx]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x421118
mov ecx, dword [0x8716a0]
mov edi, dword [ecx + 0x34]
mov esi, eax
and esi, 0xffff
imul esi, esi, 0x138
mov edx, dword [esi + edi + 8]
add esi, edi
mov dword [esp + 0x28], edx
call fcn.00420e60
mov ebp, eax
test bp, bp
jle 0x420faf
mov ebx, dword [esi + 0x18]
push 0x10
lea eax, [esp + 0x30]
lea edi, [esp + 0x24]
call fcn.00420df0
add esp, 4
cmp ax, 0xffff
je 0x420f26
movsx eax, ax
imul eax, eax, 0x1c
cmp word [esp + eax + 0x2c], bp
lea eax, [esp + eax + 0x2c]
jge 0x420f26
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov word [eax], bp
jmp 0x420f26
mov ax, word [esi + 0x24]
cmp ax, 2
jl 0x420f30
cmp ax, 3
jg 0x420f30
mov al, byte [esi + 0x60]
test al, al
jne 0x420f30
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xffffffff
mov dword [esp + 0x10], ecx
je 0x420f30
fld dword [esi + 0x11c]
fcomp dword [0x66c41c]
fnstsw ax
test ah, 5
jp 0x420f30
mov edx, dword [0x871740]
mov esi, dword [edx + 0x34]
and ecx, 0xffff
imul ecx, ecx, 0x724
add ecx, esi
cmp word [ecx + 0x3a8], 0
je 0x420f30
mov eax, dword [ecx + 0x3ac]
cmp eax, 0xffffffff
je 0x420f30
mov edx, dword [ebx + 0x3a4]
cmp edx, 0xffffffff
je 0x421044
cmp dword [ecx + 0x3b0], edx
jl 0x420f30
mov ecx, dword [esp + 0x1f0]
and eax, 0xffff
imul eax, eax, 0x138
mov ebx, dword [eax + edi + 0x18]
add eax, edi
push ebx
mov dword [esp + 0x1c], eax
call fcn.0043ea90
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
je 0x420f26
mov esi, ebp
and esi, 0xffff
imul esi, esi, 0x138
mov ax, word [esi + edi + 0x24]
add esi, edi
cmp ax, 2
jl 0x420f26
cmp ax, 3
jg 0x420f26
mov al, byte [esi + 0xa4]
test al, al
je 0x420f26
push 0x10
lea eax, [esp + 0x30]
lea edi, [esp + 0x24]
call fcn.00420df0
add esp, 4
cmp ax, 0xffff
je 0x420f26
movsx ecx, ax
mov eax, dword [esp + 0x18]
imul ecx, ecx, 0x1c
fld dword [eax + 0x11c]
fld st(0)
fmulp st(1)
fcom dword [esp + ecx + 0x40]
fnstsw ax
inc word [esp + ecx + 0x3c]
test ah, 5
lea ecx, [esp + ecx + 0x2c]
jp 0x4210fb
mov edx, dword [esp + 0x10]
fstp dword [ecx + 0x14]
mov dword [ecx + 0x18], edx
jmp 0x4210fd
fstp st(0)
cmp dword [ecx + 4], 0xffffffff
jne 0x420f26
mov eax, dword [esi + 0x18]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
jmp 0x420f26
mov eax, dword [esp + 0x20]
test ax, ax
jle 0x4212cc
movzx ecx, ax
lea edi, [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov esi, dword [edi + 0xc]
mov cl, byte [esi + 0x135]
mov edx, dword [esp + 0x1c]
mov ax, word [edx + 0x268]
xor bl, bl
test cl, cl
jne 0x421154
mov cl, byte [esi + 0x136]
test cl, cl
je 0x421161
mov ebp, dword [esp + 0x1c]
mov ax, word [ebp + 0x26a]
jmp 0x421165
mov ebp, dword [esp + 0x1c]
mov dl, byte [esi + 0x12e]
test dl, dl
je 0x421184
xor ecx, ecx
mov cx, word [ebp + 0x26c]
test cx, cx
jle 0x421184
cmp ax, cx
jle 0x421184
mov eax, ecx
test ax, ax
jle 0x421196
cmp word [edi], ax
jl 0x421196
test dl, dl
je 0x42119a
mov bl, 1
jmp 0x4211a3
test dl, dl
je 0x4211a3
mov word [esi + 0xaa], 0x16
cmp word [esi + 0xaa], 0
jle 0x421215
cmp word [esi + 0xac], 0
jne 0x421207
mov eax, dword [0x70ba18]
fld dword [ebp + 0x274]
fld dword [ebp + 0x270]
imul eax, eax, 0x19660d
fxch st(1)
fsub st(1)
add eax, 0x3c6ef35f
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x10], ecx
mov dword [0x70ba18], eax
fild dword [esp + 0x10]
fmul dword [0x66c4cc]
fmulp st(1)
fadd st(1)
fmul dword [0x66c414]
call fcn.006343a4
fstp st(0)
mov word [esi + 0xae], ax
dec word [esi + 0xaa]
inc word [esi + 0xac]
cmp word [esi + 0x78], 0x2d
jge 0x421226
cmp word [edi], 4
jl 0x4212b6
mov ax, word [esi + 0xae]
test ax, ax
jle 0x42124f
cmp word [esi + 0xac], ax
jl 0x42124f
mov ax, word [edi]
cmp ax, 7
movsx eax, ax
jg 0x42124c
mov eax, 7
mov word [edi], ax
test bl, bl
je 0x421267
mov ax, word [edi]
cmp ax, 8
movsx eax, ax
jg 0x421264
mov eax, 8
mov word [edi], ax
mov ax, word [ebp + 0x278]
test ax, ax
jle 0x421290
cmp word [esi + 0xa6], ax
jl 0x421290
mov ax, word [edi]
cmp ax, 9
movsx eax, ax
jg 0x42128d
mov eax, 9
mov word [edi], ax
mov ax, word [ebp + 0x27a]
test ax, ax
jle 0x4212b6
cmp word [edi + 0x10], ax
jl 0x4212b6
mov ax, word [edi]
cmp ax, 6
movsx eax, ax
jg 0x4212b3
mov eax, 6
mov word [edi], ax
mov eax, dword [esp + 0x18]
add edi, 0x1c
dec eax
mov dword [esp + 0x18], eax
jne 0x421130
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ax, word [ebx + 0x3a8]
test ax, ax
jle 0x421305
dec eax
test ax, ax
mov word [ebx + 0x3a8], ax
jne 0x4213ad
mov edx, dword [0x6eb40c]
mov eax, dword [edx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3a4], eax
pop ebx
add esp, 0x1dc
ret
mov eax, dword [esp + 0x20]
or edi, 0xffffffff
test ax, ax
mov esi, 5
jle 0x4213ad
lea ecx, [esp + 0x2c]
movzx ebp, ax
xor edx, edx
mov dx, word [ecx]
cmp dx, si
jle 0x421337
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x421337
mov esi, edx
mov edi, eax
add ecx, 0x1c
dec ebp
jne 0x421321
cmp edi, 0xffffffff
je 0x4213ad
mov ecx, dword [0x70ba18]
mov eax, dword [esp + 0x1c]
imul ecx, ecx, 0x19660d
fld dword [eax + 0x28c]
fld dword [eax + 0x288]
fxch st(1)
fsub st(1)
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0x10
mov dword [esp + 0x10], edx
mov dword [0x70ba18], ecx
fild dword [esp + 0x10]
fmul dword [0x66c4cc]
fmulp st(1)
fadd st(1)
fmul dword [0x66c414]
call fcn.006343a4
fstp st(0)
mov word [ebx + 0x3a8], ax
mov eax, dword [0x6eb40c]
mov dword [ebx + 0x3ac], edi
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0x3b0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1dc
ret