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

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
test eax, eax
push edi
mov dword [esp + 0x20], esi
jne 0x5d5692
push 0
push 0
push 0x190
push 0x16
push str.Arial
call fcn.005c9df0
add esp, 0x14
mov dword [esi + 0x38], eax
mov edi, dword [esi + 0x38]
test edi, edi
mov dword [esp + 0x54], edi
je 0x5d6543
mov eax, dword [esp + 0x244]
test eax, eax
mov esi, dword [esp + 0x24c]
jne 0x5d56c6
test esi, esi
jne 0x5d56c6
mov eax, dword [esp + 0x248]
test eax, eax
je 0x5d6543
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x5d56de
cmp eax, ebx
jne 0x5d56de
inc dword [edi + 0x18]
jmp 0x5d5702
mov al, byte [edi + 5]
test al, al
je 0x5d56f1
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x5d56f8
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], ebx
mov eax, dword [esp + 0x240]
mov edi, dword [eax + 0x50]
shr edi, 1
test esi, esi
mov byte [esp + 0x1f], 0
mov dword [esp + 0x34], edi
je 0x5d58b0
mov eax, dword [esi + 4]
mov ecx, eax
shr eax, 1
and ecx, 1
cmp edi, eax
je 0x5d58b0
xor edx, edx
cmp ecx, edx
je 0x5d57c0
xor ebp, ebp
test edi, edi
je 0x5d588f
mov ecx, edi
shl ecx, 4
push ecx
call fcn.00489377
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5d58a0
push fcn.005b01e0
push edi
push 0x10
push ebx
call fcn.00430db0
mov eax, dword [esi + 4]
shr eax, 1
cmp eax, edi
mov ebp, ebx
mov dword [esp + 0x18], ebp
mov ecx, edi
ja 0x5d577e
mov ecx, eax
test ecx, ecx
jbe 0x5d588f
xor eax, eax
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov edx, dword [esi]
add edx, eax
mov ebp, dword [edx]
lea ecx, [eax + ebx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ecx + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x14]
add eax, 0x10
dec ecx
mov dword [esp + 0x14], ecx
jne 0x5d5790
jmp 0x5d588b
mov ebx, 1
cmp edi, ebx
jb 0x5d57d6
lea esp, [esp]
add ebx, ebx
cmp ebx, edi
jbe 0x5d57d0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
fild qword [esp + 0x24]
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x5d57ff
mov edx, 1
shl edx, cl
cmp edx, eax
jae 0x5d5805
add edx, edx
cmp edx, ebx
je 0x5d58a0
xor ebp, ebp
test ebx, ebx
je 0x5d588f
mov edx, ebx
shl edx, 4
push edx
call fcn.00489377
add esp, 4
cmp eax, ebp
je 0x5d58a0
lea edx, [ebx - 1]
cmp edx, ebp
jl 0x5d5841
lea ecx, [eax + 8]
inc edx
mov dword [ecx - 8], ebp
mov dword [ecx - 4], ebp
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
add ecx, 0x10
dec edx
jne 0x5d5830
mov ecx, dword [esi + 4]
shr ecx, 1
cmp ecx, ebx
mov ebp, eax
mov dword [esp + 0x18], ebp
ja 0x5d5852
mov ebx, ecx
test ebx, ebx
jbe 0x5d588f
xor ecx, ecx
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov edx, dword [esi]
add edx, ecx
mov ebp, dword [edx]
lea ebx, [ecx + eax]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ebx + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x14]
add ecx, 0x10
dec edx
mov dword [esp + 0x14], edx
jne 0x5d5860
mov ebp, dword [esp + 0x18]
mov eax, dword [esi]
test eax, eax
je 0x5d589e
push eax
call fcn.00489183
add esp, 4
mov dword [esi], ebp
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [esi + 4], ecx
mov ebx, dword [esp + 0x250]
test ebx, ebx
je 0x5d5a6d
mov eax, dword [ebx + 4]
mov ecx, eax
shr eax, 1
and ecx, 1
cmp edi, eax
je 0x5d5a6d
xor ebp, ebp
cmp ecx, ebp
je 0x5d5952
xor esi, esi
cmp edi, ebp
je 0x5d593c
lea edx, [edi + edi*4]
shl edx, 3
push edx
call fcn.00489377
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5d5a5d
push fcn.005ca950
push edi
push 0x28
push ebp
call fcn.00430db0
mov eax, dword [ebx + 4]
shr eax, 1
cmp eax, edi
mov esi, ebp
mov dword [esp + 0x18], esi
mov edx, edi
ja 0x5d5917
mov edx, eax
test edx, edx
jbe 0x5d593c
xor eax, eax
lea ecx, [ecx]
mov esi, dword [ebx]
add esi, eax
lea edi, [eax + ebp]
mov ecx, 0xa
add eax, 0x28
dec edx
rep movsd dword es:[edi], dword [esi]
jne 0x5d5920
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x5d594b
push eax
call fcn.00489183
add esp, 4
mov dword [ebx], esi
jmp 0x5d5a5d
mov esi, 1
cmp edi, esi
jb 0x5d5966
nop
lea esp, [esp]
add esi, esi
cmp esi, edi
jbe 0x5d5960
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
fild qword [esp + 0x24]
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x5d5991
mov edx, 1
shl edx, cl
jmp 0x5d5993
xor edx, edx
cmp edx, eax
jae 0x5d5999
add edx, edx
cmp edx, esi
je 0x5d5a5d
cmp esi, ebp
mov dword [esp + 0x14], ebp
je 0x5d5a48
lea edx, [esi + esi*4]
shl edx, 3
push edx
call fcn.00489377
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5d5a5d
lea eax, [esi - 1]
test eax, eax
jl 0x5d5a12
lea ecx, [ebp + 8]
inc eax
mov edx, 0x3f800000
mov dword [ecx - 8], edx
mov dword [ecx - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], edx
mov byte [ecx + 0x1c], 1
add ecx, 0x28
dec eax
jne 0x5d59d6
mov ecx, dword [ebx + 4]
shr ecx, 1
cmp ecx, esi
mov dword [esp + 0x14], ebp
jbe 0x5d5a21
mov ecx, esi
test ecx, ecx
jbe 0x5d5a48
xor edx, edx
mov eax, ecx
lea esp, [esp]
mov esi, dword [ebx]
add esi, edx
lea edi, [edx + ebp]
mov ecx, 0xa
add edx, 0x28
dec eax
rep movsd dword es:[edi], dword [esi]
jne 0x5d5a30
mov edi, dword [esp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x5d5a57
push eax
call fcn.00489183
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
mov ecx, dword [ebx + 4]
lea eax, [edi + edi]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [ebx + 4], ecx
xor eax, eax
cmp edi, eax
mov dword [esp + 0x30], eax
jbe 0x5d618f
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x240]
mov eax, dword [edx + 0x4c]
mov ecx, dword [esp + 0x30]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x5d64ff
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x10], edi
call dword [eax + 0x70]
mov ebx, eax
shr ebx, 0xf
and bl, 1
je 0x5d5ae3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], 0
fimul dword [esp + 0xac]
call fcn.00487bd0
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edx, dword [esi]
mov ecx, esi
mov ebp, eax
call dword [edx + 0x70]
test eax, 0x10000
je 0x5d5b03
test ebp, ebp
jne 0x5d5b03
mov ebp, 2
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x5d5b1a
lea edi, [eax + 4]
jmp 0x5d5b1c
xor edi, edi
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x40]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [edx + 0x38]
push edi
call fcn.005c9e40
lea ecx, [esp + 0x50]
call fcn.004039f0
mov eax, dword [esi]
lea ecx, [esp + 0x1dc]
push ecx
mov ecx, esi
mov dword [esp + 0x54], 0
call dword [eax + 0x80]
fld dword [eax]
mov ecx, dword [esp + 0x240]
fsub dword [ecx]
mov edx, dword [esi]
fstp dword [esp + 0x24]
fld dword [eax + 4]
fsub dword [ecx + 4]
mov ecx, dword [esp + 0x24]
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x74]
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x3f800000
mov byte [esp + 0x7c], 1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x84]
fst dword [esp + 0x114]
lea eax, [esp + 0x114]
fstp dword [esp + 0x124]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0x3f800000
mov byte [esp + 0x13c], 0
call fcn.0050ff10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
test bl, bl
je 0x5d5cd7
fdivr dword [0x65c2f4]
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0x3f800000
mov byte [esp + 0x160], 0
lea eax, [esp + 0x13c]
fst dword [esp + 0x13c]
fstp dword [esp + 0x14c]
jmp 0x5d5d72
mov eax, dword [esi]
fstp dword [esp + 0x84]
mov ecx, esi
call dword [eax + 0x84]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x84]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jb 0x5d5d7c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
fst dword [esp + 0x164]
fstp dword [esp + 0x174]
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], 0x3f800000
mov byte [esp + 0x188], 0
lea eax, [esp + 0x164]
lea ecx, [esp + 0x58]
push eax
call fcn.0050ff10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x88]
fst dword [esp + 0x10]
fcos
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c0], 0
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0
mov dword [esp + 0x1d4], 0
mov dword [esp + 0x1d8], 0x3f800000
mov byte [esp + 0x1dc], 0
fld dword [esp + 0x14]
fsin
fld st(1)
fstp dword [esp + 0x1b8]
fld st(0)
fchs
fstp dword [esp + 0x1bc]
fstp dword [esp + 0x1c4]
fstp dword [esp + 0x1c8]
call fcn.0050ff10
mov edx, dword [esi]
lea eax, [esp + 0x1ec]
push eax
mov ecx, esi
call dword [edx + 0x80]
mov ecx, dword [eax + 4]
mov edx, dword [esi]
lea eax, [esp + 0x1e4]
mov dword [esp + 0x88], ecx
push eax
mov ecx, esi
mov dword [esp + 0x190], 0x3f800000
mov dword [esp + 0x194], 0
call dword [edx + 0x80]
fld dword [eax]
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x18c]
mov dword [esp + 0x1a0], ecx
fstp dword [esp + 0x194]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1a0], 0x3f800000
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0x3f800000
mov byte [esp + 0x1b4], 0
call fcn.0050ff10
mov eax, dword [esp + 0x240]
add eax, 0x24
push eax
lea ecx, [esp + 0x5c]
call fcn.0050ff10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x38]
mov dword [ecx + 0x60], eax
mov edx, dword [edi + 0x38]
xor ebp, ebp
mov dword [edx + 0x64], ebp
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ebp
fild qword [esp + 0x9c]
fcomp dword [0x65c2f4]
fnstsw ax
test ah, 0x41
jp 0x5d5f12
test bl, bl
jne 0x5d5f12
mov ecx, dword [edi + 0x38]
mov byte [ecx + 0x69], 1
jmp 0x5d5f7e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
fstp dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
test ah, 0x40
je 0x5d5f3c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
fmul dword [0x65ffe0]
fmul dword [esp + 0x10]
jmp 0x5d5f40
fld dword [esp + 0x10]
fld dword [0x65c2f4]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5d5f55
fstp dword [esp + 0x18]
jmp 0x5d5f5f
fstp st(0)
mov dword [esp + 0x18], 0x3f800000
fld dword [esp + 0x18]
fistp dword [esp + 0x80]
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x6c], ecx
mov edx, dword [edi + 0x38]
mov byte [edx + 0x69], 0
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call dword [eax + 0x24]
mov eax, dword [eax]
cmp eax, ebp
je 0x5d5fc5
add eax, 4
mov dword [esp + 0x10], eax
jmp 0x5d5fc9
mov dword [esp + 0x10], ebp
mov edx, dword [edi + 0x38]
mov eax, dword [esi]
mov ebx, dword [edx]
push 1
mov ecx, esi
call dword [eax + 0x44]
mov edx, dword [esp + 0x90]
neg al
sbb al, al
inc al
push eax
mov eax, dword [esp + 0x98]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xac]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [edi + 0x38]
lea edx, [esp + 0x5c]
push edx
call dword [ebx + 0x20]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5d6079
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x5d6079
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x5d6068
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x5d6063
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5d6068
mov eax, 0xff
test eax, eax
jne 0x5d6079
mov eax, dword [esp + 0x38]
push eax
call fcn.00499410
add esp, 4
mov ebx, dword [esp + 0x248]
test ebx, ebx
mov dword [esp + 0x38], 0
je 0x5d61e4
mov al, byte [esp + 0x7c]
test al, al
je 0x5d60e0
fld dword [esp + 0x60]
mov dword [esp + 0xb4], 0x3f800000
fchs
mov dword [esp + 0xb8], 0
fstp dword [esp + 0xbc]
fld dword [esp + 0x6c]
mov dword [esp + 0xc0], 0
fchs
mov dword [esp + 0xc4], 0x3f800000
fstp dword [esp + 0xc8]
jmp 0x5d6101
lea ecx, [esp + 0x1f4]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0050ec90
mov ecx, 9
mov esi, eax
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0xb4]
fmul dword [ebx]
fld dword [esp + 0xb8]
fmul dword [ebx + 4]
faddp st(1)
fadd dword [esp + 0xbc]
fld dword [esp + 0xc0]
fmul dword [ebx]
fld dword [esp + 0xc4]
fmul dword [ebx + 4]
faddp st(1)
fadd dword [esp + 0xc8]
fstp dword [esp + 0xa8]
fcom dword [esp + 0x40]
fnstsw ax
test ah, 1
jne 0x5d64fd
fcomp dword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x5d64ff
fld dword [esp + 0xa8]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
jne 0x5d64ff
fld dword [esp + 0xa8]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 5
jp 0x5d64ff
mov byte [esp + 0x1f], 1
mov eax, dword [esp + 0x248]
xor edi, edi
cmp eax, edi
je 0x5d656a
mov al, byte [esp + 0x1f]
test al, al
jne 0x5d656a
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], edi
je 0x5d652f
cmp dword [esi + 0x14], edi
je 0x5d652f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x5d652f
dec dword [esi + 0x18]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 0x14
mov eax, dword [esp + 0x244]
test eax, eax
je 0x5d6404
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
fmul dword [0x660254]
call fcn.00487bd0
mov ecx, edi
shr ecx, 8
and edi, 0xff00ff
mov edx, ecx
imul edi, eax
and edx, 0xffff00ff
imul edx, eax
and ecx, 0xff00ff
imul ecx, eax
mov eax, dword [esi]
shr edi, 8
and edi, 0xff00ff
and edx, 0xff00ff
xor edi, edx
xor edi, ecx
mov ecx, esi
call dword [eax + 0x5c]
mov edx, dword [esi]
mov ecx, esi
mov ebp, eax
call dword [edx + 0x54]
fmul dword [0x660254]
call fcn.00487bd0
mov ecx, ebp
shr ecx, 8
and ebp, 0xff00ff
mov edx, ecx
imul ebp, eax
and edx, 0xffff00ff
imul edx, eax
and ecx, 0xff00ff
imul ecx, eax
mov eax, dword [esi]
shr ebp, 8
and ebp, 0xff00ff
and edx, 0xff00ff
xor ebp, edx
xor ebp, ecx
mov ecx, esi
call dword [eax + 0x3c]
cmp eax, 2
jne 0x5d62ab
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x38]
mov dword [ecx + 0x7c], ebp
jmp 0x5d62c5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x3c]
cmp eax, 1
mov ebx, dword [esp + 0x20]
jne 0x5d62bf
mov edi, ebp
jmp 0x5d62c5
mov eax, dword [ebx + 0x38]
mov dword [eax + 0x7c], edi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [ebx + 0x38]
and al, 1
mov byte [ecx + 0x75], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [ebx + 0x38]
and al, 2
mov byte [ecx + 0x76], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [ebx + 0x38]
and al, 4
mov byte [ecx + 0x77], al
mov eax, dword [esp + 0x244]
mov edx, dword [eax + 8]
lea ebp, [eax + 4]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov dword [esp + 0x110], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], edx
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x5d633b
add eax, 4
mov dword [esp + 0x10], eax
jmp 0x5d6343
mov dword [esp + 0x10], 0
mov ecx, dword [ebx + 0x38]
mov ebx, dword [ecx]
mov edx, dword [esi]
push 0xffffffffffffffff
push 1
mov ecx, esi
call dword [edx + 0x44]
mov edx, dword [esp + 0x48]
neg al
sbb al, al
inc al
push eax
lea eax, [esp + 0x110]
push eax
mov eax, dword [esp + 0x54]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x68]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [eax + 0x38]
push edi
push ebp
push edx
call dword [ebx + 0x18]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5d63f7
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x5d63f7
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x5d63e6
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x5d63e1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5d63e6
mov eax, 0xff
test eax, eax
jne 0x5d63f7
mov eax, dword [esp + 0x3c]
push eax
call fcn.00499410
add esp, 4
mov dword [esp + 0x3c], 0
jmp 0x5d64ff
mov eax, dword [esp + 0x24c]
test eax, eax
je 0x5d64ff
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x250]
add ecx, edx
test ebx, ebx
mov edx, dword [esp + 0x40]
mov dword [ecx], edx
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
je 0x5d64ff
mov al, byte [esp + 0x7c]
test al, al
je 0x5d64be
fld dword [esp + 0x60]
mov dword [esp + 0xdc], 0x3f800000
fchs
mov dword [esp + 0xe0], 0
fstp dword [esp + 0xe4]
fld dword [esp + 0x6c]
mov dword [esp + 0xe8], 0
fchs
mov dword [esp + 0xec], 0x3f800000
fstp dword [esp + 0xf0]
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0x3f800000
mov byte [esp + 0x100], 1
jmp 0x5d64e7
lea ecx, [esp + 0x218]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0050ec90
mov ecx, 9
mov esi, eax
lea edi, [esp + 0xdc]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x100], 0
mov edi, dword [ebx]
add edi, dword [esp + 0x14]
mov ecx, 0xa
lea esi, [esp + 0xdc]
rep movsd dword es:[edi], dword [esi]
jmp 0x5d64ff
fstp st(0)
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
inc eax
add esi, 0x10
add edx, 0x28
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edx
jb 0x5d5a83
jmp 0x5d618f
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], edi
je 0x5d6553
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 0x14
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 0x14
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], edi
je 0x5d6595
cmp dword [esi + 0x14], edi
je 0x5d6595
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x5d6595
dec dword [esi + 0x18]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 0x14
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], edi
je 0x5d65b8
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 0x14
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x14