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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x418]
mov cl, byte [eax + 0x1352]
test cl, cl
je 0x446916
mov ecx, dword [esi + 0xa8]
sub ecx, ebx
je 0x4467d4
dec ecx
je 0x4466ea
mov ecx, esi
call fcn.00591d80
fld qword [eax + 0x18]
fmul qword [0x786608]
call fcn.0076a6b0
mov esi, eax
mov eax, dword [0xa255a0]
push 2
push ebx
lea ecx, [eax + 0x218]
call fcn.0062fcf0
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x228]
cmp edi, ebx
jne 0x4466f8
xor eax, eax
jmp 0x44670a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x2c]
sub eax, 2
neg eax
sbb eax, eax
not eax
and eax, edi
cmp dword [esi + 0x228], ebx
je 0x4467b6
cmp eax, ebx
je 0x4467b6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1b8]
test eax, eax
je 0x4467b6
mov ecx, dword [esi + 0x228]
mov eax, dword [esi]
push 1
push ebx
push ecx
mov ecx, esi
call dword [eax + 0x368]
cmp eax, 5
je 0x446798
cmp eax, 6
je 0x446798
cmp eax, 8
je 0x446798
cmp eax, 2
je 0x4467c1
cmp eax, ebx
jne case.0x446a67.10
mov eax, dword [esi + 0x228]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
call dword [edx + 0x374]
mov eax, dword [esi + 0x228]
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
call dword [edx + 0x374]
mov dword [esi + 0xa8], ebx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x370]
mov dword [esi + 0xa8], ebx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x370]
mov dword [esi + 0xa8], ebx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [eax + 0x1217]
test cl, cl
je 0x446802
cmp dword [eax + 0xc6c], ebx
jle 0x446802
mov ecx, dword [esi + 0x1b4]
call fcn.004e7720
fcomp qword [0x785708]
fnstsw ax
test ah, 1
jne case.0x446a67.10
mov edi, dword [esi + 0x228]
cmp edi, ebx
jne 0x446810
xor eax, eax
jmp 0x446822
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x2c]
sub eax, 2
neg eax
sbb eax, eax
not eax
and eax, edi
cmp dword [esi + 0x228], ebx
je 0x4468e1
cmp eax, ebx
je 0x4468e1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1b8]
test eax, eax
je 0x4468e1
lea edi, [esi + 0x2e0]
mov ecx, edi
call fcn.004b87b0
test al, al
jne case.0x446a67.10
mov ecx, dword [esi + 0x228]
mov eax, dword [esi]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x474]
mov ebx, eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004b8700
mov ax, word [eax]
sub ax, word [ebx]
movsx eax, ax
cdq
mov ecx, eax
mov eax, 0x2000
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jl 0x4468b6
mov dword [esi + 0xa8], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x228]
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x474]
push eax
mov ecx, edi
call fcn.004b8550
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x370]
mov eax, dword [esi]
push ebx
push 5
mov ecx, esi
mov dword [esi + 0xa8], ebx
call dword [eax + 0x1d0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1d4]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x228]
cmp eax, ebx
jne 0x44697d
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x370]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x534], ebx
call dword [edx + 0x3c8]
test al, al
je 0x446946
mov ecx, esi
call fcn.006c6890
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x16c]
cmp eax, 0x1c
je case.0x446a67.10
mov edx, dword [esi]
push ebx
push 5
mov ecx, esi
call dword [edx + 0x1d0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d4]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2b8]
mov ecx, dword [esi + 0x228]
mov ebp, eax
mov eax, dword [esi]
push 1
push ebp
push ecx
mov ecx, esi
mov byte [esi + 0x5ad], 1
call dword [eax + 0x368]
mov edi, eax
cmp edi, 2
jne 0x446a5e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x3a0]
test al, al
je switch.0x00446a67
mov eax, dword [esi + 0x418]
mov cl, byte [eax + 0x135f]
test cl, cl
je switch.0x00446a67
mov eax, dword [esi + 0x228]
mov edx, dword [esi]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x474]
mov edx, dword [eax]
mov eax, dword [esi + 0x418]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x638]
cmp ecx, ebx
je 0x446a38
lea eax, [esp + 0x24]
mov ebx, ecx
push eax
lea ecx, [esi + 0x2e0]
call fcn.004b8700
mov cx, word [eax]
xor edx, edx
sub cx, word [esp + 0x14]
mov dh, bl
movsx eax, dx
cdq
mov ebx, eax
movsx eax, cx
xor ebx, edx
sub ebx, edx
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jl 0x446a65
xor ebx, ebx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x2e0]
push eax
call fcn.004b8630
mov eax, dword [esi + 0x228]
mov edx, dword [esi]
push 1
push ebp
push eax
mov ecx, esi
call dword [edx + 0x368]
mov edi, eax
cmp edi, 0xa
ja case.0x446a67.4
jmp switch.0x00446a67
xor ebx, ebx
jmp dword [edi*4 + 0x446f74]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x370]
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x534], ebx
call dword [eax + 0x3c8]
test al, al
je 0x446a94
mov ecx, esi
call fcn.006c6890
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x16c]
cmp eax, 0x1c
je case.0x446a67.10
mov eax, dword [esi]
push ebx
push 5
mov ecx, esi
call dword [eax + 0x1d0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1d4]
mov eax, dword [esi + 0x228]
cmp eax, ebx
je case.0x446a67.10
mov edx, dword [esi]
push eax
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call dword [edx + 0x474]
push eax
lea ecx, [esi + 0x2e0]
call fcn.004b8550
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x228]
cmp eax, ebx
je 0x446b26
mov edx, dword [esi]
push eax
lea eax, [esp + 0x2c]
jmp 0x446b11
mov eax, dword [esi + 0x228]
cmp eax, ebx
je 0x446b26
mov edx, dword [esi]
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0x474]
push eax
lea ecx, [esi + 0x2e0]
call fcn.004b8550
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x3f0]
jmp case.0x446a67.4
mov al, byte [esi + 0x5c6]
test al, al
je 0x446b92
mov ecx, dword [esi + 0x4c0]
cmp ecx, ebx
je 0x446b92
call fcn.006d0340
test al, al
je case.0x446a67.10
mov ecx, dword [esi + 0x228]
mov eax, dword [esi]
push ebx
push ecx
mov ecx, esi
call dword [eax + 0x374]
mov eax, dword [esi + 0x228]
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
call dword [edx + 0x374]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x821b68]
mov eax, dword [esi + 0x418]
cmp eax, dword [ecx + 0x3f0]
jne 0x446ead
mov edx, dword [esi]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
xor ebx, ebx
mov dword [esp + 0x14], SysReAllocString
call dword [edx + 0xa8]
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x534]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [0x821b68]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x3f8]
cmp ecx, eax
jge 0x446e0a
mov eax, dword [esi + 0x1b4]
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 0x78]
test eax, eax
mov dword [esp + 0x24], eax
jle 0x446e0a
mov ecx, dword [esi + 0x1b4]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x6c]
mov edi, dword [edx + eax*4]
test edi, edi
je 0x446d2e
mov al, byte [edi + 0x7d]
test al, al
je 0x446d2e
mov edx, dword [0x821b68]
mov ecx, dword [edi + 0x418]
cmp ecx, dword [edx + 0x3f0]
jne 0x446d2e
mov edx, dword [edi + 0x244]
mov ecx, dword [edi + 0x24c]
cmp edx, 0xffffffff
je 0x446c63
mov eax, dword [0xa2894c]
sub eax, edx
cmp eax, ecx
jge 0x446c6b
sub ecx, eax
test ecx, ecx
jne 0x446d2e
mov eax, dword [edi + 0x5d8]
test eax, eax
jne 0x446d2e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x16c]
cmp eax, 1
je 0x446d2e
cmp edi, esi
je 0x446d2e
mov edx, dword [edi]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call dword [edx + 0xa8]
mov ebp, dword [esp + 0x38]
mov edx, eax
sub esp, 8
mov ecx, dword [edx]
sub ebp, ecx
mov ecx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov dword [esp + 0x20], ebp
fild dword [esp + 0x20]
mov edx, dword [edx + 8]
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
fild dword [esp + 0x20]
sub eax, edx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp qword [esp + 0x38]
fstp qword [esp + 0x20]
fld st(0)
fmul st(1)
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
faddp st(1)
fld qword [esp + 0x38]
fmul qword [esp + 0x38]
faddp st(1)
fstp qword [esp]
fstp st(0)
call fcn.004b9f30
add esp, 8
call fcn.0076a6b0
mov edx, dword [esi]
push 1
mov ecx, esi
mov ebp, eax
call dword [edx + 0x154]
cmp ebp, eax
jg 0x446d2e
test ebx, ebx
je 0x446d28
cmp ebp, dword [esp + 0x10]
jge 0x446d2e
mov ebx, edi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x446c0a
test ebx, ebx
je 0x446e0a
mov ebp, dword [esi + 0x534]
mov eax, dword [esi]
lea ecx, [esp + 0x5c]
push 0
inc ebp
push ecx
mov ecx, esi
mov dword [esi + 0x534], ebp
call dword [eax + 0xac]
mov esi, dword [ebx + 0x418]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov esi, dword [esi + 0x1370]
push 3
mov dword [ebx + 0x5d8], esi
lea esi, [ebx + 0x5cc]
mov dword [ebx + 0x5c8], 2
mov dword [esi], ecx
mov ecx, ebx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
call fcn.0044ccc0
mov ecx, ebx
call fcn.005cca80
mov edx, dword [0x821b68]
fcomp qword [edx + 0x1368]
fnstsw ax
test ah, 0x41
je 0x446dd0
mov eax, dword [ebx + 0x418]
mov ecx, 1
add eax, 0xf8c
jmp 0x446ddd
mov eax, dword [ebx + 0x418]
xor ecx, ecx
add eax, 0xf7c
test eax, eax
je case.0x446a67.10
cmp byte [eax], 0
je case.0x446a67.10
push 0
push 0
push ecx
push 0xa
push eax
mov ecx, ebx
call fcn.0044c750
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x418]
xor eax, eax
push 3
mov edx, dword [ecx + 0x1370]
lea ecx, [esi + 0x5cc]
mov dword [esi + 0x5d8], edx
mov edx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x5c8], 1
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.0044ccc0
mov ecx, esi
call fcn.005cca80
mov ecx, dword [0x821b68]
fcomp qword [ecx + 0x1368]
fnstsw ax
test ah, 0x41
je 0x446e73
mov eax, dword [esi + 0x418]
mov ecx, 1
add eax, 0xf8c
jmp 0x446e80
mov eax, dword [esi + 0x418]
xor ecx, ecx
add eax, 0xf7c
test eax, eax
je case.0x446a67.10
cmp byte [eax], 0
je case.0x446a67.10
push 0
push 0
push ecx
push 0xa
push eax
mov ecx, esi
call fcn.0044c750
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [eax + 0x1347]
test cl, cl
je 0x446f53
mov edx, dword [eax + 0x1370]
mov ecx, dword [esp + 0x3c]
lea eax, [esi + 0x5cc]
mov dword [esi + 0x5d8], edx
mov edx, dword [esp + 0x40]
push 3
mov dword [eax], ebp
mov dword [esi + 0x5c8], 1
mov dword [eax + 4], ecx
mov ecx, esi
mov dword [eax + 8], edx
call fcn.0044ccc0
mov ecx, esi
call fcn.005cca80
mov eax, dword [0x821b68]
fcomp qword [eax + 0x1368]
fnstsw ax
test ah, 0x41
je 0x446f1b
mov eax, dword [esi + 0x418]
mov ecx, 1
add eax, 0xf8c
jmp 0x446f28
mov eax, dword [esi + 0x418]
xor ecx, ecx
add eax, 0xf7c
cmp eax, ebx
je case.0x446a67.10
cmp byte [eax], 0
je case.0x446a67.10
push ebx
push ebx
push ecx
push 0xa
push eax
mov ecx, esi
call fcn.0044c750
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x228]
mov edx, dword [esi]
push ebp
push eax
mov ecx, esi
call dword [edx + 0x374]
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret