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

Disassembly:
sub esp, 0x1e8
mov eax, dword [esp + 0x204]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x204]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x3c], 0
je 0x5ec02c
mov eax, dword [eax]
mov dword [esp + 0x54], eax
mov ecx, dword [esi]
fild dword [esp + 0x1fc]
mov edi, dword [esi + 0x28]
mov dword [esp + 0x174], esi
mov edx, dword [ecx]
fstp dword [esp + 0x58]
fild dword [esp + 0x200]
mov dword [esp + 0xa8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0xac], eax
mov edx, dword [ecx + 8]
fstp dword [esp + 0x5c]
mov dword [esp + 0xb0], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xb4], eax
mov edx, dword [ecx + 0x10]
mov dword [esp + 0xb8], edx
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x5c]
push edx
push eax
mov dword [esp + 0x88], edi
call fcn.00510b10
fld dword [esp + 0xc4]
mov dword [esp + 0x64], eax
fadd dword [esp + 0x64]
mov dword [esp + 0x68], edx
lea ecx, [esp + 0xf4]
fstp dword [esp + 0xc4]
push ecx
fld dword [esp + 0xcc]
push esi
fadd dword [esp + 0x70]
fstp dword [esp + 0xd0]
call fcn.005e25a0
mov edx, dword [esp + 0x150]
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x148]
movsx ebx, word [esi + 4]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x88], edx
movsx edx, word [esi + 8]
mov dword [esp + 0xf4], eax
mov al, byte [esi + 0x1c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x164]
add esp, 0x14
test al, al
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x80], edx
jne 0x5ec159
push 0
call fcn.0044b1f0
add esp, 4
mov cl, byte [esi + 0x1d]
xor eax, eax
test cl, cl
sete al
lea ecx, [esp + 0xe8]
push ecx
mov dword [esp + 0xa4], eax
call fcn.004f86c0
mov ecx, dword [esi + 0xc]
mov eax, ebx
mov ebx, dword [esi + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x84]
sub ecx, ebx
imul ecx, dword [edi + 0x20]
mov edx, eax
sar edx, 3
add ecx, edx
mov edx, dword [edi]
mov esi, dword [edx]
mov edi, dword [esp + 0x20c]
and eax, 7
add ecx, esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x178]
mov esi, dword [eax]
push 1
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xb0]
mov dword [eax], ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x214]
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x188]
push edx
push edi
push eax
call fcn.005e2980
mov ecx, dword [esp + 0x194]
add esp, 0x20
test edi, edi
mov dword [ecx], esi
je 0x5ec212
mov eax, edi
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x3c], edx
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
jmp 0x5ec2a6
mov esi, dword [esp + 0x204]
test esi, esi
je 0x5ec29c
mov ecx, 7
lea edi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
mov ax, word [esp + 0xc8]
mov di, word [esp + 0xca]
mov si, word [esp + 0xd6]
xor ecx, ecx
cmp ax, di
setne cl
xor edx, edx
movsx ebx, ax
mov dword [esp + 0x70], ebx
mov dword [esp + 0xe4], ecx
mov cx, word [esp + 0xd4]
cmp cx, si
setne dl
cmp ax, cx
mov eax, ebx
mov dword [esp + 0x58], edx
movsx edx, cx
mov dword [esp + 0x78], edx
jl 0x5ec27d
mov eax, edx
cmp di, si
mov word [ebp], ax
movsx eax, di
jg 0x5ec28c
movsx eax, si
mov word [ebp + 2], ax
mov eax, dword [esp + 0xc4]
mov dword [ebp + 4], eax
jmp 0x5ec2a6
push 0
call fcn.0044b1f0
add esp, 4
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp eax, edi
jne 0x5ec2bc
cmp dword [esp + 0x210], 0x7fff
jle 0x5ec2c5
push edi
call fcn.0044b1f0
add esp, 4
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x210]
lea edx, [esi + ecx*2 - 6]
mov ebx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x90], eax
mov dword [esp + 0x2c], ebx
mov eax, dword [0x6bf3ec]
test eax, eax
je 0x5ec30d
call eax
lea eax, [esi + 2]
mov word [eax], 0
mov edi, eax
mov eax, dword [esp + 0x208]
xor edx, edx
test eax, eax
mov word [esi], 0
mov dword [esp + 0x20], edx
je 0x5ec33d
mov ecx, dword [esp + 0x3c]
movsx eax, word [ecx]
add ecx, 2
mov dword [esp + 0x3c], ecx
jmp 0x5ec342
mov eax, 1
dec eax
mov dword [esp + 0x8c], eax
js 0x5ec989
mov eax, dword [esp + 0x208]
test eax, eax
mov edx, dword [esp + 0x3c]
je 0x5ec372
movsx eax, word [edx]
movsx ecx, word [edx + 2]
add edx, 2
add edx, 2
mov dword [esp + 0x3c], edx
jmp 0x5ec37a
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
cmp eax, ecx
je 0x5ec961
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0xc4]
push edx
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xfc]
push ecx
call fcn.005e2ac0
add esp, 0x18
test eax, eax
je 0x5ec961
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x90]
mov ecx, ebx
sub ecx, eax
mov eax, edx
sub eax, esi
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xf8]
xor esi, esi
cmp edx, esi
mov dword [esp + 0x98], ebx
je 0x5ec440
cmp ecx, esi
jne 0x5ec440
mov ecx, dword [esp + 0x50]
shl eax, 0x10
cmp ecx, esi
je 0x5ec41b
mov ecx, dword [esp + 0x4c]
sub ecx, eax
cmp ecx, esi
mov dword [esp + 0x4c], ecx
jg 0x5ec577
mov eax, dword [esp + 0x74]
nop
add ecx, eax
cmp ecx, esi
jle 0x5ec410
jmp 0x5ec573
mov ecx, dword [esp + 0x44]
sub ecx, eax
cmp ecx, esi
mov dword [esp + 0x44], ecx
jg 0x5ec577
mov eax, dword [esp + 0x68]
add ecx, eax
cmp ecx, esi
jle 0x5ec431
mov dword [esp + 0x44], ecx
jmp 0x5ec577
fld dword [esp + 0x168]
call fcn.00667ad0
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x168]
fsub dword [esp + 0x28]
fstp dword [esp + 0x18]
fld dword [esp + 0x16c]
call fcn.00667ad0
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
mov eax, dword [esp + 0x12c]
cmp eax, esi
fstp dword [esp + 0x28]
fld dword [esp + 0x16c]
fsub dword [esp + 0x28]
fstp dword [esp + 0x14]
jle 0x5ec4a7
fld dword [0x671614]
fsub dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x124]
mov eax, dword [esp + 0x50]
cmp eax, esi
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
je 0x5ec4cd
fld dword [esp + 0x18]
fsub dword [esp + 0x170]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 5
jp 0x5ec4e2
mov dword [esp + 0x18], esi
fld dword [esp + 0x18]
fmul dword [0x673468]
call fcn.00667ad0
mov ecx, dword [esp + 0x68]
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x5ec502
dec ecx
mov dword [esp + 0x44], ecx
cmp dword [esp + 0x130], esi
jle 0x5ec519
fld dword [0x671614]
fsub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x128]
mov eax, dword [esp + 0x88]
cmp eax, esi
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
je 0x5ec542
fld dword [esp + 0x14]
fsub dword [esp + 0x170]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 5
jp 0x5ec557
mov dword [esp + 0x14], esi
fld dword [esp + 0x14]
fmul dword [0x673468]
call fcn.00667ad0
mov ecx, dword [esp + 0x74]
cmp eax, ecx
mov dword [esp + 0x4c], eax
jl 0x5ec577
dec ecx
mov dword [esp + 0x4c], ecx
fld dword [esp + 0x16c]
call fcn.00667ad0
mov edx, dword [esp + 0x80]
cmp eax, edx
je 0x5ec5d5
mov ecx, eax
sub ecx, edx
cmp ecx, 0xffffffff
je 0x5ec5bd
cmp ecx, 1
je 0x5ec5ae
mov edx, dword [esp + 0x7c]
mov edx, dword [edx + 0x20]
imul edx, ecx
mov ecx, dword [esp + 0x10]
add ecx, edx
jmp 0x5ec5ca
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x10]
add ecx, edx
jmp 0x5ec5ca
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x80], eax
fld dword [esp + 0x168]
call fcn.00667ad0
mov edx, dword [esp + 0x94]
cmp eax, edx
je 0x5ec67d
mov ecx, eax
sub ecx, edx
cmp ecx, 0xffffffff
je 0x5ec65b
cmp ecx, 1
je 0x5ec648
cmp ecx, esi
mov esi, dword [esp + 0x10]
jle 0x5ec629
mov edx, ecx
sar edx, 3
add esi, edx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x40]
and ecx, 7
add ecx, esi
cmp ecx, 7
jle 0x5ec672
mov edx, dword [esp + 0x10]
sub ecx, 8
inc edx
jmp 0x5ec66e
neg ecx
mov edx, ecx
sar edx, 3
sub esi, edx
mov edx, dword [esp + 0x40]
and ecx, 7
sub edx, ecx
mov dword [esp + 0x10], esi
mov ecx, edx
jns 0x5ec672
add ecx, 8
jmp 0x5ec669
mov ecx, dword [esp + 0x40]
inc ecx
cmp ecx, 7
jle 0x5ec672
mov edx, dword [esp + 0x10]
xor ecx, ecx
inc edx
jmp 0x5ec66e
mov ecx, dword [esp + 0x40]
dec ecx
cmp ecx, esi
jge 0x5ec672
mov ecx, 7
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x94], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov esi, 0x80
sar esi, cl
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xa0]
test edx, edx
mov dword [esp + 0x14], eax
sete al
dec al
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], 0
and eax, 0xff
cmp ebx, ecx
jge 0x5ec8a8
movzx eax, al
mov dword [esp + 0xa4], eax
jmp 0x5ec6e0
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x50]
xor ecx, edx
and ecx, esi
neg ecx
sbb ecx, ecx
neg ecx
test eax, eax
mov dword [esp + 0x60], ecx
je 0x5ec727
mov eax, dword [esp + 0x88]
test eax, eax
mov eax, dword [esp + 0x18]
je 0x5ec72b
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.00486020
mov ecx, dword [esp + 0x68]
add esp, 8
jmp 0x5ec72b
mov eax, dword [esp + 0x34]
add eax, 0xffff
sar eax, 0x10
test eax, eax
jne 0x5ec73c
mov eax, 1
mov edx, dword [esp + 0x38]
lea ebx, [eax + edx]
mov edx, dword [esp + 0x64]
cmp ebx, edx
jle 0x5ec753
sub edx, ebx
mov ebx, dword [esp + 0x64]
add eax, edx
mov edx, dword [esp + 0x50]
shl eax, 0x10
test edx, edx
je 0x5ec7aa
sub dword [esp + 0x18], eax
jns 0x5ec7aa
mov edx, dword [esp + 0xe0]
test edx, edx
jle 0x5ec788
cmp esi, 1
jne 0x5ec784
mov edx, dword [esp + 0x14]
inc edx
mov esi, 0x80
mov dword [esp + 0x14], edx
jmp 0x5ec7a2
sar esi, 1
jmp 0x5ec7a2
cmp esi, 0x80
jne 0x5ec7a0
mov edx, dword [esp + 0x14]
dec edx
mov esi, 1
mov dword [esp + 0x14], edx
jmp 0x5ec7a2
shl esi, 1
mov edx, dword [esp + 0x68]
add dword [esp + 0x18], edx
mov edx, dword [esp + 0x88]
test edx, edx
je 0x5ec7da
sub dword [esp + 0x34], eax
jns 0x5ec7da
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x74]
add eax, edx
mov dword [esp + 0x34], eax
cmp ecx, dword [esp + 0x28]
je 0x5ec898
test ecx, ecx
mov dword [esp + 0x28], ecx
jne 0x5ec7f0
inc dword [esp + 0x20]
cmp edi, dword [esp + 0x48]
jb 0x5ec88d
mov eax, dword [esp + 0x214]
test eax, eax
je 0x5ec874
mov ax, word [esp + 0x38]
mov word [edi], ax
add edi, 2
test ecx, ecx
jne 0x5ec898
mov cx, word [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ax, word [esp + 0x2c]
mov word [edx], cx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x214]
sub edi, ecx
mov word [ebp + 4], ax
mov eax, dword [esp + 0x24]
push edx
lea ecx, [eax + 1]
sar edi, 1
push ebp
mov word [ebp + 8], di
mov word [ebp + 6], cx
mov dword [esp + 0x34], eax
call dword [esp + 0x5c]
mov eax, dword [ebp + 0xc]
add esp, 8
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x20], ecx
mov word [ebp + 8], cx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
lea edi, [eax + 2]
jmp 0x5ec898
mov eax, dword [esp + 0x30]
test eax, eax
jg 0x5ecb05
mov dword [esp + 0x84], 1
jmp 0x5ec898
mov ax, word [esp + 0x38]
mov word [edi], ax
add edi, 2
cmp ebx, dword [esp + 0x64]
mov dword [esp + 0x38], ebx
jl 0x5ec6e0
jmp 0x5ec8ac
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x5ec961
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
inc ecx
cmp edi, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], ecx
jb 0x5ec956
mov eax, dword [esp + 0x214]
test eax, eax
je 0x5ec93d
mov cx, word [esp + 0x38]
mov dx, word [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov word [edi], cx
mov cx, word [esp + 0x2c]
mov word [eax], dx
sub edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
lea edx, [eax + 1]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x214]
add edi, 2
push eax
sar edi, 1
push ebp
mov word [ebp + 8], di
mov word [ebp + 4], cx
mov word [ebp + 6], dx
call dword [esp + 0x5c]
mov eax, dword [ebp + 0xc]
add esp, 8
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x1c], eax
lea edi, [eax + 2]
mov dword [esp + 0x20], ecx
mov word [ebp + 8], cx
jmp 0x5ec961
mov eax, dword [esp + 0x30]
test eax, eax
jg 0x5ecb05
mov dword [esp + 0x84], 1
jmp 0x5ec961
mov cx, word [esp + 0x38]
mov word [edi], cx
add edi, 2
dec dword [esp + 0x8c]
jns 0x5ec350
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x5ecb1f
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
inc eax
mov word [esi], dx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jg 0x5eca2b
cmp edi, dword [esp + 0x48]
jae 0x5eca2b
mov ecx, dword [esp + 0x214]
test ecx, ecx
je 0x5ec9cb
cmp esi, dword [ebp + 0xc]
jne 0x5ec9cb
test edx, edx
jne 0x5ec9cb
inc ebx
mov dword [esp + 0x2c], ebx
jmp 0x5ec9d1
mov esi, edi
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x5eca7b
test edx, edx
jne 0x5eca7b
cmp esi, dword [esp + 0x48]
jb 0x5eca7b
mov word [esi], 0
sub edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
mov word [ebp + 4], bx
push ecx
lea edx, [eax + 1]
mov ebx, eax
sar edi, 1
push ebp
mov word [ebp + 8], di
mov word [ebp + 6], dx
mov dword [esp + 0x34], ebx
call dword [esp + 0x5c]
mov esi, dword [ebp + 0xc]
mov word [esi], 0
mov eax, dword [esp + 0x2c]
add esp, 8
mov word [ebp + 8], 0
jmp 0x5eca77
mov edx, dword [ebp + 0xc]
mov ecx, edi
sub ecx, edx
sar ecx, 1
mov word [ebp + 8], cx
mov ecx, dword [esp + 0x214]
test ecx, ecx
je 0x5eca5a
push ecx
push ebp
mov word [ebp + 4], bx
mov word [ebp + 6], ax
call dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
add esp, 8
jmp 0x5eca64
cmp edi, dword [esp + 0x48]
jae 0x5ecb40
cmp eax, dword [esp + 0x6c]
jg 0x5ecb40
mov esi, dword [ebp + 0xc]
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x204]
test ecx, ecx
je 0x5ec302
cmp eax, dword [esp + 0x6c]
jne 0x5ecaad
movsx edx, word [esp + 0xca]
movsx eax, word [esp + 0xd6]
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], eax
jmp 0x5ec302
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x5ecad6
mov ecx, dword [esp + 0xcc]
mov eax, ecx
sar eax, 0x10
mov dword [esp + 0x70], eax
add ecx, dword [esp + 0xd0]
mov dword [esp + 0xcc], ecx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5ec302
mov ecx, dword [esp + 0xd8]
mov eax, ecx
sar eax, 0x10
mov dword [esp + 0x78], eax
add ecx, dword [esp + 0xdc]
mov dword [esp + 0xd8], ecx
jmp 0x5ec302
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
sub ecx, esi
pop edi
sar ecx, 1
pop esi
mov word [ebp + 8], cx
pop ebp
pop ebx
add esp, 0x1e8
ret
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x5ecb05
mov ecx, dword [esp + 0x20]
pop edi
pop esi
lea edx, [ecx + ecx]
mov eax, 0xfffffffc
pop ebp
sub eax, edx
pop ebx
add esp, 0x1e8
ret
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e8
ret