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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x894
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
cmp ebx, eax
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], al
je 0x552b27
mov esi, dword [ebp + 0xc]
cmp esi, 1
jl 0x552b27
lea eax, [edi + 8]
push eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi - 1]
test eax, eax
jl 0x5529a7
lea ecx, [eax*8]
sub ecx, eax
inc eax
mov dword [esp + 0x18], eax
lea esi, [ebx + ecx*2 + 6]
mov dword [esp + 0x38], esi
mov eax, dword [esi - 4]
test eax, eax
je 0x55293f
movsx eax, word [esi - 6]
mov ecx, dword [0x5a1a04]
lea edx, [esp + 0x110]
push edx
push eax
call fcn.0051b6d0
test eax, eax
je 0x55293f
fld dword [esi]
mov ecx, dword [esp + 0x178]
sub esp, 8
fstp qword [esp]
call fcn.00429ac0
fstp qword [esp + 0x58]
fld dword [esi + 4]
mov ecx, dword [esp + 0x178]
sub esp, 8
fstp qword [esp]
call fcn.00429ac0
mov eax, dword [edi + 0x37d0]
xor ebx, ebx
fstp qword [esp + 0x60]
cmp eax, ebx
mov dword [esp + 0x54], ebx
jle 0x55293f
mov ecx, dword [edi + 0x37c8]
lea esi, [esp + 0x110]
lea eax, [ecx + ebx + 8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x552782
test cl, cl
je 0x55277e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x552782
add eax, 2
add esi, 2
test cl, cl
jne 0x55275e
xor eax, eax
jmp 0x552787
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x55291e
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x11c]
push eax
push ecx
mov ecx, edi
call fcn.00551630
test eax, eax
je 0x55291e
mov edx, dword [edi + 0x37c8]
mov esi, dword [esp + 0x14]
inc esi
mov eax, dword [edx + ebx + 0x18]
lea ecx, [edx + ebx]
test eax, eax
mov dword [esp + 0x14], esi
je 0x5527e8
cmp eax, 3
je 0x5527e8
cmp eax, 5
je 0x5527e8
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
jmp 0x5527f0
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [edi + 0x37c8]
add eax, ebx
cmp dword [eax + 0x18], 2
jge 0x55291e
lea ecx, [esp + 0x34]
lea edx, [esp + 0x110]
push ecx
push edx
push eax
mov ecx, edi
call fcn.005514b0
test byte [edi + 0x3688], 2
je 0x55291e
mov eax, dword [edi + 0x37c8]
push 0
mov ecx, dword [eax + ebx]
push ecx
mov ecx, edi
call fcn.0054fee0
cmp eax, 0xa
mov dword [esp + 0x28], eax
jl 0x55291e
cmp dword [esp + 0x34], eax
jl 0x55291e
mov edx, dword [edi + 0x37c8]
mov eax, dword [edx + ebx + 0x18]
lea esi, [edx + ebx]
test eax, eax
jne 0x55289d
fild dword [esp + 0x28]
mov eax, dword [esp + 0x178]
push eax
fstp qword [esp + 0x2c]
call fcn.00428ce0
fdivr qword [esp + 0x2c]
mov ecx, dword [edi + 0x37c8]
add esp, 4
fsubr qword [esi + 0x78]
lea esi, [ecx + ebx]
fcom qword [esi + 0x30]
fnstsw ax
test ah, 0x41
jne 0x55291c
jmp 0x5528df
fild dword [esp + 0x28]
mov edx, dword [edi + 0x37c8]
mov eax, dword [esp + 0x178]
push eax
fstp qword [esp + 0x2c]
lea esi, [edx + ebx]
call fcn.00428ce0
fdivr qword [esp + 0x2c]
add esp, 4
fadd qword [esi + 0x78]
fcom qword [esi + 0x30]
fnstsw ax
test ah, 1
jne 0x5528df
fld qword [esi + 0x30]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x40
je 0x55291c
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov al, byte [esi + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0x3c]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x24]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x30], eax
fstp qword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
jmp 0x55291e
fstp st(0)
mov eax, dword [esp + 0x54]
mov ecx, dword [edi + 0x37d0]
inc eax
add ebx, 0xe0
cmp eax, ecx
mov dword [esp + 0x54], eax
jl 0x55274d
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
sub esi, 0xe
dec eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], eax
jne 0x5526dd
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, eax
jle 0x5529ab
mov ecx, dword [edi + 0x37d0]
mov dword [edi + 0x1b0], eax
cmp ecx, eax
mov dword [edi + 0x1b4], eax
jle 0x5529ab
mov eax, dword [edi + 0x37c8]
add eax, 0x88
cmp dword [eax - 0x70], 1
jg 0x55299d
fld qword [eax - 0x28]
fadd qword [eax - 0x18]
fadd qword [eax - 8]
fadd qword [edi + 0x1b0]
fadd qword [eax]
fstp qword [edi + 0x1b0]
add eax, 0xe0
dec ecx
jne 0x552980
jmp 0x5529ab
mov esi, dword [esp + 0x14]
fld qword [edi + 0x1b0]
fadd qword [edi + 0x198]
fadd qword [edi + 0x188]
fstp qword [edi + 0x190]
fld qword [edi + 0x198]
fadd qword [edi + 0x188]
fsub qword [edi + 0x1a0]
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x1a8], eax
mov dword [edi + 0x1ac], ecx
mov ecx, dword [edi + 0x366c]
cmp ecx, 1
je 0x552a17
fld qword [edi + 0x1b0]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x552a12
cmp ecx, 2
jne 0x552a27
jmp 0x552a17
cmp ecx, 3
jne 0x552a27
fld qword [esp + 0x18]
fadd qword [edi + 0x1b0]
fstp qword [edi + 0x1a8]
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x552b1c
fld qword [esp + 0x20]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x552b1c
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], edx
movzx ax, byte [esp + 0x13]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x24]
mov word [esp + 0x72], ax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0xdc]
push 0x20
push ecx
mov byte [esp + 0x84], 0x47
call fcn.00429bd0
mov edx, dword [esp + 0x88]
add esp, 0x14
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
push str._d:_trailing_stop__d_____s
push 0
push 0x596558
call fcn.004aa400
add esp, 0x18
mov ecx, 0x593d48
push 0xa
call fcn.0042f340
push 1
lea ecx, [esp + 0x74]
push 0
push ecx
mov ecx, dword [0x5a2240]
call fcn.005580a0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8