Function at 0x4889d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5217f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
mov eax, dword [0x565e78]
xor ecx, ecx
mov dword [esp + 0x3d], ecx
push esi
mov esi, dword [esp + 0x1d0]
mov dword [esp + 0x45], ecx
mov dword [esp + 0x49], ecx
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0x1d4]
push edi
mov word [esp + 0x51], cx
push 0x56b958
mov dword [esi + 0xb8], eax
mov byte [esp + 0x48], 0
mov byte [esp + 0x57], cl
call fcn.00411050
mov ecx, dword [eax]
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x488a40
push ebx
push ebp
sub eax, edi
push eax
lea ebp, [esi + 0x85c]
push ecx
mov ecx, ebp
call fcn.00401b10
push 5
xor edi, edi
push str.TABLE
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
call fcn.00401b10
mov dword [esp + 0x1d4], edi
mov eax, dword [ebp + 0x18]
mov ebx, 0x10
cmp eax, ebx
jb 0x488a95
mov eax, dword [ebp + 4]
jmp 0x488a98
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488aa6
lea ecx, [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 1
push 0x541250
push ecx
call edi
mov dword [esi + 0x310], eax
cmp dword [ebp + 0x18], ebx
jb 0x488ac7
mov eax, dword [ebp + 4]
jmp 0x488aca
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488ad8
lea ecx, [esp + 0x34]
push eax
push 0
push str.isDrop
push ecx
call edi
mov dword [esi + 0x31c], eax
cmp dword [ebp + 0x18], ebx
jb 0x488af3
mov eax, dword [ebp + 4]
jmp 0x488af6
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488b04
lea ecx, [esp + 0x34]
push eax
push ebx
lea edx, [esp + 0x54]
push edx
push 0x53c550
push str.DROP
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x4c]
lea ecx, [esi + 0x304]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x488b30
sub eax, edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00401f00
cmp dword [ebp + 0x18], ebx
jb 0x488b4e
mov eax, dword [ebp + 4]
jmp 0x488b51
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488b5f
lea ecx, [esp + 0x34]
push eax
push 0
push str.isSpeed
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x320], eax
cmp dword [ebp + 0x18], ebx
jb 0x488b7e
mov eax, dword [ebp + 4]
jmp 0x488b81
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488b8f
lea ecx, [esp + 0x34]
push eax
push ebx
lea edx, [esp + 0x54]
push edx
push str.9999
push str.SPEED
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x4c]
lea ecx, [esi + 0x300]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x488bb4
sub eax, edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00401f00
cmp dword [ebp + 0x18], ebx
jb 0x488bd2
mov eax, dword [ebp + 4]
jmp 0x488bd5
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488be3
lea ecx, [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.FRIENDEXCEPT
push ecx
call edi
mov dword [esi + 0x314], eax
cmp dword [ebp + 0x18], ebx
jb 0x488c04
mov eax, dword [ebp + 4]
jmp 0x488c07
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488c15
lea ecx, [esp + 0x34]
push eax
push 1
push str.BLACKEXCEPT
push ecx
call edi
mov dword [esi + 0x318], eax
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x1d4], 1
mov eax, dword [esi + 0xb8]
push eax
lea ecx, [esp + 0x18]
push str.GAME__d
push ecx
call fcn.00405820
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, ebx
jb 0x488c66
mov eax, dword [ebp + 4]
jmp 0x488c69
lea eax, [ebp + 4]
mov edi, dword [esp + 0x14]
push eax
push 0
push str.isSilver
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x324], eax
cmp dword [ebp + 0x18], ebx
jb 0x488c8c
mov eax, dword [ebp + 4]
jmp 0x488c8f
lea eax, [ebp + 4]
push eax
push 0x10
lea edx, [esp + 0x54]
push edx
push 0x542030
push str.SILVER
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x4c]
lea ecx, [esi + 0x308]
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x488cb5
sub eax, ebx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00401f00
cmp dword [ebp + 0x18], 0x10
jb 0x488cd4
mov eax, dword [ebp + 4]
jmp 0x488cd7
lea eax, [ebp + 4]
push eax
push 0
push str.isScore
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x328], eax
mov eax, dword [ebp + 0x18]
mov ebx, 0x10
cmp eax, ebx
jb 0x488cfd
mov eax, dword [ebp + 4]
jmp 0x488d00
lea eax, [ebp + 4]
push eax
push ebx
lea ecx, [esp + 0x54]
push ecx
push 0x542030
push str.SCORE
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x4c]
lea ecx, [esi + 0x30c]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x488d25
sub eax, edi
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00401f00
push 6
push str.INVITE
lea ecx, [esp + 0x38]
call fcn.00401b10
cmp dword [ebp + 0x18], ebx
jb 0x488d53
mov eax, dword [ebp + 4]
jmp 0x488d56
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488d64
lea ecx, [esp + 0x34]
push eax
push 0x3f4
push str.CHECKED
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 5
push str.OTHER
lea ecx, [esp + 0x38]
mov dword [esi + 0x2f4], eax
call fcn.00401b10
cmp dword [ebp + 0x18], ebx
jb 0x488d96
mov eax, dword [ebp + 4]
jmp 0x488d99
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488da7
lea ecx, [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push ebx
lea eax, [esp + 0x54]
push eax
push 0x53a3bc
push 0x540160
push ecx
call edi
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488dc8
sub eax, edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esi + 0x2fc]
call fcn.00401f00
cmp dword [ebp + 0x18], ebx
jb 0x488dec
mov eax, dword [ebp + 4]
jmp 0x488def
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488dfd
lea ecx, [esp + 0x34]
push eax
push ebx
lea edx, [esp + 0x54]
push edx
push 0x53a3bc
push str.BASEMONEY
push ecx
call edi
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488e18
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esi + 0xb48]
call fcn.00401f00
cmp dword [ebp + 0x18], ebx
jb 0x488e3c
mov eax, dword [ebp + 4]
jmp 0x488e3f
lea eax, [ebp + 4]
cmp dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x34]
jae 0x488e4d
lea ecx, [esp + 0x34]
push eax
push 0
push str.ISNOTCHAT
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0xb54], eax
call fcn.00410f00
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401c20
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1d4], 2
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x488e93
lea eax, [esp + 0x34]
push ebx
push 0x10
lea ecx, [esp + 0x54]
push ecx
push 0x53e4e4
push str.SHORTCUT
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x4c]
lea ecx, [esi + 0x2f8]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x488ec0
sub eax, edi
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00401f00
mov al, byte [esp + 0x4c]
mov byte [0x56ba68], al
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x488eec
lea eax, [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 1
push str.ISCHICKCLOSE
push eax
call edi
mov dword [esi + 0xb50], eax
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x488f12
lea eax, [esp + 0x34]
push ebx
push 1
push str.ISADLPOP
push eax
call edi
mov ecx, dword [esi + 0xb8]
push ecx
lea edx, [esp + 0x18]
push str.GAMEPARAM_d
push edx
mov dword [esi + 0xb58], eax
call fcn.00405820
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, 0x10
jb 0x488f49
mov eax, dword [ebp + 4]
jmp 0x488f4c
lea eax, [ebp + 4]
push eax
mov eax, dword [esp + 0x18]
push 0
push str.COUNT
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
lea ebx, [esi + 0x888]
mov dword [esp + 0x24], edi
call fcn.0040eea0
lea ebx, [esi + 0x898]
mov dword [esp + 0x2c], ebx
call fcn.00413f80
test edi, edi
jbe 0x489472
xor eax, eax
mov byte [esp + 0xc8], 0
mov ecx, 0x3f
lea edi, [esp + 0xc9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
mov dword [esp + 0x28], esi
jbe 0x489472
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x14]
push str.CURSEL_ITEM_d
push eax
mov byte [esp + 0x1e0], 3
call fcn.00405820
mov eax, dword [ebp + 0x18]
mov ebx, 0x10
add esp, 0xc
cmp eax, ebx
jb 0x488ff3
mov eax, dword [ebp + 4]
jmp 0x488ff6
lea eax, [ebp + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push eax
push 0x100
lea ecx, [esp + 0xd0]
push ecx
push 0x53a3bc
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
lea eax, [esp + 0xc8]
mov byte [esp + 0x1d4], 4
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x489050
sub eax, ecx
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xb4]
call fcn.00401b10
push esi
lea ecx, [esp + 0x14]
push str.CURSEL_TYPE_d
push ecx
call fcn.00405820
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, ebx
jb 0x48908d
mov eax, dword [ebp + 4]
jmp 0x489090
lea eax, [ebp + 4]
mov edx, dword [esp + 0x10]
push eax
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0xa8], eax
jne 0x4890b5
xor edx, edx
jmp 0x4890bd
mov edx, dword [ebx + 8]
sub edx, ecx
sar edx, 5
test ecx, ecx
je 0x4890f3
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 5
cmp edx, eax
jae 0x4890f3
mov eax, dword [esp + 0x1c]
mov edi, dword [ebx + 8]
push eax
push 1
push edi
lea ecx, [esp + 0xb4]
call fcn.00469c40
add esp, 0xc
add edi, 0x20
mov dword [ebx + 8], edi
mov edi, dword [esp + 0x14]
jmp 0x489107
mov eax, dword [ebx + 8]
lea ecx, [esp + 0xa8]
push ecx
push 1
push eax
push ebx
call fcn.0045fa20
xor ebx, ebx
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
push esi
lea edx, [esp + 0x14]
push str.ITEM_COUNT_d
push edx
mov byte [esp + 0x1e0], 6
call fcn.00405820
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, 0x10
jb 0x489153
mov eax, dword [ebp + 4]
jmp 0x489156
lea eax, [ebp + 4]
push eax
mov eax, dword [esp + 0x14]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
lea ecx, [esp + 0x14]
push str.ITEM_TITLE_d
push ecx
mov dword [esp + 0x2c], eax
call fcn.00405820
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, 0x10
jb 0x489188
mov eax, dword [ebp + 4]
jmp 0x48918b
lea eax, [ebp + 4]
push eax
mov eax, dword [esp + 0x14]
push 0x100
lea edx, [esp + 0xd0]
push edx
push 0x53a3bc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0xc8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4891b4
sub eax, edx
push eax
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x64]
call fcn.00401b10
mov eax, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jle 0x489369
lea ecx, [ecx]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
push ebx
push esi
lea edx, [esp + 0x18]
push str.ITEM_d__d
push edx
mov byte [esp + 0x1e4], 7
call fcn.00405820
mov eax, dword [ebp + 0x18]
mov edi, 0x10
add esp, 0x10
cmp eax, edi
jb 0x48922b
mov eax, dword [ebp + 4]
jmp 0x48922e
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push 0x100
lea eax, [esp + 0xd0]
push eax
push 0x53a3bc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0xc8]
lea edx, [eax + 1]
jmp 0x489260
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489260
sub eax, edx
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x94]
call fcn.00401b10
push ebx
push esi
lea ecx, [esp + 0x18]
push str.TYPE_d__d
push ecx
call fcn.00405820
mov eax, dword [ebp + 0x18]
add esp, 0x10
cmp eax, edi
jb 0x48929e
mov eax, dword [ebp + 4]
jmp 0x4892a1
lea eax, [ebp + 4]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esp + 0x7c]
test edx, edx
mov edi, dword [esp + 0x80]
mov dword [esp + 0x88], eax
je 0x489304
mov ecx, dword [esp + 0x84]
mov eax, edi
sub eax, edx
sub ecx, edx
sar eax, 5
sar ecx, 5
cmp eax, ecx
jae 0x489304
mov ecx, dword [esp + 0x1c]
push ecx
push 1
push edi
lea ecx, [esp + 0x94]
call fcn.00469c40
add esp, 0xc
add edi, 0x20
mov dword [esp + 0x80], edi
jmp 0x48931c
lea edx, [esp + 0x88]
push edx
push 1
push edi
lea eax, [esp + 0x84]
push eax
call fcn.0045fa20
mov byte [esp + 0x1d4], 6
cmp dword [esp + 0xa4], 0x10
jb 0x48933e
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004fa776
add esp, 4
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
jl 0x4891e0
mov eax, dword [esp + 0x1dc]
lea ecx, [esp + 0x5c]
add eax, 0x888
call fcn.0045f540
mov eax, dword [esp + 0x7c]
xor edi, edi
cmp eax, edi
je 0x4893d3
mov edi, dword [esp + 0x80]
cmp eax, edi
je 0x4893c4
lea esi, [eax + 0x1c]
xor ebx, ebx
cmp dword [esi], 0x10
jb 0x4893a9
mov eax, dword [esi - 0x14]
push eax
call fcn.004fa776
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x20
lea edx, [esi - 0x1c]
cmp edx, edi
jne 0x489398
mov eax, dword [esp + 0x7c]
push eax
call fcn.004fa776
mov esi, dword [esp + 0x2c]
add esp, 4
xor edi, edi
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
jb 0x4893f9
mov eax, dword [esp + 0x60]
push eax
call fcn.004fa776
add esp, 4
cmp dword [esp + 0xc4], 0x10
mov ebx, 0xf
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
jb 0x489425
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.004fa776
add esp, 4
mov byte [esp + 0x1d4], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], edi
mov byte [esp + 0xb0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x489461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x28], esi
jb 0x488fb4
mov esi, dword [esp + 0x1dc]
mov ecx, dword [esi + 0x2fc]
mov eax, ecx
pop ebp
lea edi, [eax + 1]
pop ebx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x489486
sub eax, edi
push eax
push ecx
mov ecx, 0x568ea0
call fcn.00401b10
mov ecx, dword [esi + 0xb48]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4894a6
sub eax, edi
push eax
push ecx
mov ecx, 0x568ebc
call fcn.00401b10
push 0x56b5e8
lea ecx, [esp + 0x14]
call fcn.00402030
push 0xb
push str.config.ini
lea ecx, [esp + 0x18]
mov byte [esp + 0x1d4], 8
call fcn.00401a20
mov eax, dword [esp + 0x10]
push eax
push 0
push str.mode
push str.roommode
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0xb44], eax
mov byte [esp + 0x1cc], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x489526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x1c4], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48954c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x1c4], 0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489572
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x38], 0x10
jb 0x489586
mov eax, dword [esp + 0x24]
push eax
call fcn.004fa776
add esp, 4
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1b8]
call fcn.004b6cac
add esp, 0x1c8
ret 8