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

Disassembly:
push 0xffffffffffffffff
push 0x87e5cd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x2c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x2dc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2ec]
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
mov edi, ecx
push eax
lea ecx, [edi + 0xb0]
push ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x70], ecx
call fcn.005bd860
xor esi, esi
cmp eax, esi
je 0x6502c4
mov eax, dword [eax + 4]
cmp byte [eax + 0x28], 0
je 0x650f3a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
push 0xa0
call fcn.007c8529
add esp, 4
cmp eax, esi
je 0x6502e6
mov ecx, eax
call fcn.00646d60
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp ebx, esi
jne 0x6502ed
xor eax, eax
jmp 0x650f3a
push 1
push ebp
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00642bc0
lea ecx, [esp + 0x98]
mov dword [esp + 0x2e4], esi
call fcn.0063d210
lea ecx, [esp + 0x218]
mov byte [esp + 0x2e4], 1
call fcn.0063d210
cmp byte [edi + 0x140], 0
mov byte [esp + 0x2e4], 2
je 0x65034d
mov eax, dword [edi + 0x13c]
cmp eax, esi
je 0x65034d
push eax
lea ecx, [esp + 0x9c]
call fcn.004f7250
jmp 0x65035d
lea edx, [esp + 0x98]
push edx
push ebp
mov ecx, edi
call fcn.00642830
mov eax, dword [edi + 0x88]
fld1
cmp eax, 2
jne 0x6503c5
fld qword [esp + 0xf8]
fld st(0)
fld qword [esp + 0x100]
fdiv st(1), st(0)
fld st(3)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x65045a
fld qword [edi + 0x90]
fld st(3)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x65045a
fxch st(2)
fcomp qword [edi + 0x90]
fnstsw ax
test ah, 0x41
jne 0x650409
fstp st(0)
fdiv qword [edi + 0x90]
fstp qword [esp + 0x100]
jmp 0x650464
cmp eax, 1
jne 0x65041a
fld qword [esp + 0xf8]
fld st(0)
fld qword [esp + 0x100]
fdiv st(1), st(0)
fld st(3)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x65045a
fld qword [edi + 0x90]
fld st(3)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x65045a
fxch st(2)
fcomp qword [edi + 0x90]
fnstsw ax
test ah, 0x41
jne 0x6503b1
fstp st(1)
fmul qword [edi + 0x90]
fstp qword [esp + 0xf8]
jmp 0x650464
cmp eax, 3
jne 0x650462
fld qword [esp + 0xf8]
fld qword [esp + 0x100]
fdivr st(1)
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jp 0x650460
fld qword [edi + 0x90]
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x650462
fmul qword [edi + 0x90]
fstp qword [esp + 0xf8]
jmp 0x650464
fstp st(2)
fstp st(0)
jmp 0x650462
fstp st(1)
fstp st(0)
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x21c]
call fcn.004f7250
mov eax, dword [edi + 0xfc]
mov ecx, dword [edi + 0xf8]
sar eax, 3
push eax
sar ecx, 3
push ecx
push esi
lea edx, [ebx + 0x70]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0xa8]
neg ecx
mov dword [ebx + 0x20], ecx
mov edx, dword [edi + 0x48]
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x28], 0
mov eax, dword [esp + 0x150]
mov dword [ebx + 0x2c], eax
cmp byte [edi + 0x140], 0
je 0x65050e
cmp dword [edi + 0x13c], esi
je 0x65050e
mov eax, 0x2aaaaaab
imul dword [edi + 0xf8]
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], ecx
mov eax, 0x38e38e39
fild dword [esp + 0x18]
fstp qword [ebx + 0x90]
imul dword [edi + 0xfc]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jmp 0x65059e
mov eax, dword [edi + 0x40]
cmp eax, esi
jle 0x650551
cmp dword [esp + 0x150], 1
jne 0x650531
mov ecx, dword [edi + 0x108]
sub ecx, dword [edi + 0x100]
mov dword [esp + 0x18], ecx
jmp 0x65053b
mov edx, dword [edi + 0xf8]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdivp st(1)
jmp 0x650553
fld1
fstp qword [ebx + 0x90]
mov eax, dword [edi + 0x44]
cmp eax, esi
jle 0x65059c
cmp dword [esp + 0x150], 1
jne 0x65057c
mov ecx, dword [edi + 0x10c]
sub ecx, dword [edi + 0x104]
mov dword [esp + 0x18], ecx
jmp 0x650586
mov edx, dword [edi + 0xfc]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdivp st(1)
jmp 0x65059e
fld1
fstp qword [ebx + 0x98]
mov dword [edi + 0x11c], esi
fld1
mov dword [edi + 0x118], esi
fstp qword [edi + 0x120]
mov dword [edi + 0x130], esi
mov dword [edi + 0x12c], esi
mov dword [edi + 0x128], esi
mov dword [edi + 0x134], esi
mov dword [edi + 0x138], esi
cmp ebp, dword [edi + 0xc]
jb 0x6505e5
push 0x80070057
call fcn.004a8210
mov eax, dword [edi + 8]
mov ecx, ebp
imul ecx, ecx, 0x34
mov eax, dword [eax + ecx + 0x10]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
push eax
mov dword [esp + 0x48], ecx
call fcn.004a9b50
add esp, 4
add eax, 0x10
push ebx
mov ecx, edi
mov dword [esi], eax
call fcn.00648dd0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x650cfa
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x6505db
cmp word [ecx], 0x7b
jne 0x6506be
test eax, eax
jle 0x6506be
push 0x7d
push ecx
call fcn.0080308d
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x6506be
sub eax, ecx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x6506be
push 0
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0xa0]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
lea eax, [esi - 1]
push eax
push 1
push ecx
lea ecx, [esp + 0x30]
call fcn.004a9e10
push ebx
mov ecx, edi
call fcn.0064c350
test al, al
je 0x6507b6
inc esi
push esi
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x1c]
call fcn.004aa4c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2e8], 3
call fcn.004aa540
mov eax, dword [esp + 0x58]
jmp 0x65075b
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x6505db
cmp word [ecx], 0x3c
jne 0x6507b6
test eax, eax
jle 0x6507b6
push 0x3e
push ecx
call fcn.0080308d
add esp, 8
test eax, eax
je 0x6507b6
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
test esi, esi
jle 0x6507b6
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0x9c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
lea eax, [esi - 1]
push eax
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.004a9e10
push ebx
mov ecx, edi
call fcn.00649090
test al, al
je 0x6507b6
inc esi
push esi
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
call fcn.004aa4c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2e8], 4
call fcn.004aa540
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2e4], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x65077f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x44304c
push ecx
call fcn.00809ec5
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x6507a5
sub eax, ecx
sar eax, 1
mov esi, eax
mov dword [esp + 0x38], eax
jns 0x6507ac
mov esi, dword [ecx - 0xc]
mov dword [esp + 0x38], esi
test esi, esi
je 0x650cec
jmp 0x65081a
push 1
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x1c]
call fcn.004aa4c0
mov esi, eax
mov eax, dword [esi]
push 0x44304c
push eax
call fcn.00809ec5
add esp, 8
test eax, eax
jne 0x6507e1
or esi, 0xffffffff
jmp 0x6507e7
sub eax, dword [esi]
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x650807
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jns 0x650815
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
lea esi, [eax - 1]
inc esi
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x158]
call fcn.0063d210
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x15c]
mov byte [esp + 0x2e8], 5
call fcn.004f7250
fld qword [ebx + 0x98]
fmul qword [esp + 0x1b0]
mov al, byte [edi + 0x50]
fld qword [0x442de8]
fmul st(1), st(0)
fxch st(1)
fstp qword [esp + 0x1b0]
fld qword [ebx + 0x90]
fmul qword [esp + 0x1c8]
fmulp st(1)
fstp qword [esp + 0x1c8]
test al, al
je 0x650887
fld qword [ebx + 0x90]
fld1
jmp 0x65088d
fld1
fld st(0)
fxch st(1)
fld qword [0x43a3f0]
fmul st(2), st(0)
fxch st(2)
fmul qword [esp + 0x170]
fstp qword [esp + 0x170]
test al, al
je 0x6508b1
fld qword [ebx + 0x98]
jmp 0x6508b3
fld st(0)
fmul st(2)
fmul qword [esp + 0x178]
fstp qword [esp + 0x178]
test al, al
je 0x6508cf
fld qword [ebx + 0x90]
jmp 0x6508d1
fld st(0)
fmul st(2)
fmul qword [esp + 0x180]
fstp qword [esp + 0x180]
test al, al
je 0x6508ed
fstp st(0)
fld qword [ebx + 0x98]
cmp dword [edi + 0x134], 0
fmulp st(1)
fmul qword [esp + 0x188]
fstp qword [esp + 0x188]
je 0x65092d
lea eax, [esp + 0x158]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.004ac570
push ebx
mov ecx, edi
call fcn.0064afa0
jmp 0x650c23
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.004ac570
push 0x402308
push 0x441190
lea ecx, [esp + 0x24]
mov byte [esp + 0x2ec], 6
call fcn.004aa070
mov eax, dword [ebx + 0x24]
cmp eax, 2
jl 0x650969
cmp eax, 3
mov eax, 0x402308
jne 0x65096e
mov eax, 0x40d538
push eax
push 0x402300
lea ecx, [esp + 0x24]
call fcn.004aa070
push 0x442c78
push 0x441188
lea ecx, [esp + 0x24]
call fcn.004aa070
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ecx
test ecx, ecx
js 0x650bff
jmp 0x6509b0
test ebp, ebp
js 0x6505db
cmp ebp, dword [eax - 0xc]
jg 0x6505db
movzx eax, word [eax + ebp*2]
mov dword [esp + 0x5c], eax
cmp eax, 0xa
je 0x6509e6
cmp eax, 0x20
je 0x6509e6
mov edx, 0xa0
cmp ax, dx
je 0x6509e6
test ax, ax
jne 0x650bee
cmp ebx, ebp
jge 0x650a9f
push 0x178
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
mov byte [esp + 0x2e4], 7
test esi, esi
je 0x650a4a
mov eax, dword [edi + 0x130]
mov ecx, dword [edi + 0x12c]
mov edx, dword [edi + 0x128]
push eax
push ecx
push edx
push ecx
mov eax, esp
mov dword [esp + 0x58], esp
sub ebp, ebx
push ebp
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.004a9e10
lea ecx, [esp + 0x168]
push ecx
mov ecx, esi
call fcn.006485c0
mov ebx, eax
jmp 0x650a4c
xor ebx, ebx
mov byte [esp + 0x2e4], 6
test ebx, ebx
je 0x650a9f
mov esi, dword [esp + 0x24]
mov ebp, dword [esi + 0x48]
lea ecx, [esi + 0x44]
call fcn.005dfd30
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
test eax, eax
je 0x650a73
mov dword [eax + 8], ebx
mov dword [esi + 0x54], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 0x48]
inc dword [esi + 0x4c]
test ecx, ecx
je 0x650a8d
mov dword [ecx], eax
jmp 0x650a90
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov edx, dword [edi + 0x130]
mov dword [edi + 0x12c], edx
mov ebx, dword [esp + 0x5c]
cmp bx, 0xa
jne 0x650b1e
push 0x178
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
mov byte [esp + 0x2e4], 8
test esi, esi
je 0x650b88
mov eax, dword [edi + 0x130]
mov ecx, dword [edi + 0x12c]
mov edx, dword [edi + 0x128]
push eax
push ecx
push edx
push ecx
mov dword [esp + 0x54], esp
mov ebp, esp
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x650d49
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x168]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [ebp], eax
call fcn.006485c0
mov ebx, eax
jmp 0x650b8a
cmp bx, 0x20
je 0x650b32
mov eax, 0xa0
cmp bx, ax
jne 0x650bdd
push 0x178
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
mov byte [esp + 0x2e4], 9
test esi, esi
je 0x650b88
mov ecx, dword [edi + 0x130]
mov edx, dword [edi + 0x12c]
mov eax, dword [edi + 0x128]
push ecx
push edx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push 1
push ebx
call fcn.004ac2a0
lea ecx, [esp + 0x168]
push ecx
mov ecx, esi
call fcn.006485c0
mov ebx, eax
jmp 0x650b8a
xor ebx, ebx
mov byte [esp + 0x2e4], 6
test ebx, ebx
je 0x650bdd
mov esi, dword [esp + 0x24]
mov ebp, dword [esi + 0x48]
lea ecx, [esi + 0x44]
call fcn.005dfd30
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
test eax, eax
je 0x650bb1
mov dword [eax + 8], ebx
mov dword [esi + 0x54], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
inc dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x650bcb
mov dword [ecx], eax
jmp 0x650bce
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov edx, dword [edi + 0x130]
mov dword [edi + 0x12c], edx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc ebx
mov eax, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, ecx
jle 0x6509b0
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x650c23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004aa4c0
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x2e4], 0xa
cmp eax, esi
je 0x650c91
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x650c83
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x650c83
push eax
call fcn.004a9b50
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x650c7a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x650c91
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a8db0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x650cb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1a8]
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x650ce4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x650624
mov ebp, dword [esp + 0x4c]
cmp byte [edi + 0x140], 0
je 0x650d13
cmp dword [edi + 0x13c], 0
je 0x650d13
mov ecx, ebx
call fcn.00645fd0
cmp dword [ebx + 0x34], 0
je 0x650d2f
cmp dword [ebx + 0x30], 0
jne 0x650d2b
cmp dword [ebx + 0x3c], 0
jne 0x650d2b
cmp dword [ebx + 0x40], 0
je 0x650d2f
mov byte [ebx + 0x28], 1
mov eax, dword [ebx + 0x20]
cdq
xor eax, edx
sub eax, edx
mov dword [ebx + 0x20], eax
cmp ebp, dword [edi + 0xc]
jb 0x650d53
push 0x80070057
call fcn.004a8210
push 0x80004005
call fcn.004a8210
mov eax, dword [edi + 8]
add eax, dword [esp + 0x40]
lea ecx, [esp + 0x64]
push eax
call fcn.00559a40
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov byte [esp + 0x2e4], 0xb
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
test eax, eax
jne 0x650da1
mov eax, dword [esp + 0x218]
mov dword [esp + 0x28], eax
test ecx, ecx
jne 0x650db0
mov ecx, dword [esp + 0x21c]
mov dword [esp + 0x2c], ecx
test edx, edx
jne 0x650dbf
mov edx, dword [esp + 0x220]
mov dword [esp + 0x30], edx
test esi, esi
jne 0x650dce
mov eax, dword [esp + 0x224]
mov dword [esp + 0x34], eax
fild dword [esp + 0x28]
fmul qword [ebx + 0x90]
fld qword [0x43a3f0]
fmul st(1), st(0)
fxch st(1)
call fcn.00802da0
fild dword [esp + 0x2c]
mov esi, eax
fmul qword [ebx + 0x98]
fmul st(1)
call fcn.00802da0
fild dword [esp + 0x30]
mov ebp, eax
fmul qword [ebx + 0x90]
fmul st(1)
call fcn.00802da0
fild dword [esp + 0x34]
mov dword [esp + 0x30], eax
fmul qword [ebx + 0x98]
fmulp st(1)
call fcn.00802da0
cmp dword [esp + 0x150], 1
mov dword [esp + 0x34], eax
jne 0x650e5c
mov ecx, dword [edi + 0xf8]
sub ecx, dword [edi + 0x108]
mov edx, dword [edi + 0xfc]
sub edx, dword [edi + 0x10c]
add esi, dword [edi + 0x100]
add ebp, dword [edi + 0x104]
add dword [esp + 0x30], ecx
add dword [esp + 0x34], edx
mov eax, dword [edi + 0xfc]
mov ecx, dword [edi + 0xf8]
push eax
push ecx
mov ecx, ebx
call fcn.0064bf10
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov edx, dword [edi + 0xfc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0xf8]
push edx
push eax
mov ecx, ebx
call fcn.00647e20
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x64]
call fcn.00647850
lea ecx, [esp + 0x64]
mov dword [eax], ebx
call fcn.00559310
mov eax, dword [esp + 0x268]
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x650ee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xe8]
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x650f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2e4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x650f38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c4]
xor ecx, esp
call fcn.0080262b
add esp, 0x2d4
ret 4