Function at 0x42a890
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58e52a
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
xor edi, edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x78], 1
lea esi, [esp + 0x34]
call fcn.0042ca80
test eax, eax
mov eax, dword [esp + 0x34]
je 0x42b330
cmp eax, edi
je 0x42b330
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x84]
mov ecx, dword [edx + 0x28]
add edx, 0x18
sub ecx, dword [edx + 0xc]
je 0x42a920
add eax, 0xc
call fcn.00414550
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x84]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x3c], eax
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x3c]
mov ecx, dword [edx + 0x40]
sub eax, ecx
cmp byte [edx + 0x12], 0
mov dword [esp + 0x3c], eax
jne 0x42ab8c
mov dword [esp + 0x1c], 0
mov byte [esp + 0x78], 8
lea esi, [esp + 0x1c]
call fcn.00422830
test eax, eax
je 0x42b30a
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x42b30a
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
lea ebx, [esi + 4]
push ebx
mov dword [eax], esi
call edi
mov byte [esp + 0x7c], 9
mov ebp, dword [esp + 0x38]
push ecx
mov eax, esp
mov dword [eax], ebp
mov dword [esp + 0x30], esp
add ebp, 4
push ebp
call edi
mov byte [esp + 0x80], 0xa
mov byte [esp + 0x80], 8
call fcn.00413370
add esp, 8
test eax, eax
je 0x42b2d5
mov eax, dword [esi + 8]
cmp eax, 1
je 0x42afbb
cmp eax, 2
jne 0x42aab4
mov eax, dword [esp + 0x84]
cmp byte [eax + 0x11], 0
jne 0x42a9fd
lea edx, [esi + 0x18]
call fcn.00494770
test al, al
je 0x42aab4
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x38]
mov edx, dword [esp + 0x30]
cmp byte [edx + 0x194], 0
push ecx
mov ecx, dword [eax + 0x34]
push ecx
jne 0x42b1fc
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.004216c0
push eax
call fcn.004216b0
push eax
push ecx
mov ecx, dword [esp + 0x54]
mov eax, esp
mov dword [esp + 0x40], esp
push ebp
mov dword [eax], ecx
call edi
mov byte [esp + 0x98], 0xf
push ecx
mov eax, esp
mov dword [esp + 0x4c], esp
push ebx
mov dword [eax], esi
call edi
mov byte [esp + 0x9c], 0x10
mov eax, dword [esp + 0xa8]
lea edx, [esi + 0x18]
lea ecx, [eax + 0x14]
mov eax, dword [esp + 0x54]
push edx
push eax
mov byte [esp + 0xa4], 8
call fcn.00425310
add esp, 0x2c
cmp dword [esp + 0x18], 0
jne 0x42b2d5
mov byte [esp + 0x78], 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42a926
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x42a926
cmp dword [esi + 8], 3
jne 0x42b2c9
lea edx, [esi + 0x18]
call fcn.00494770
test al, al
je 0x42b2c9
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x84]
cmp byte [ecx + 0x194], 0
mov ecx, dword [eax + 0x38]
push ecx
mov ecx, dword [eax + 0x34]
push ecx
jne 0x42b25e
mov edx, dword [eax + 0x30]
push edx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], 0
call fcn.004216c0
push eax
call fcn.004216b0
push eax
push ecx
mov ecx, dword [esp + 0x54]
mov eax, esp
mov dword [esp + 0x40], esp
push ebp
mov dword [eax], ecx
call edi
mov byte [esp + 0x98], 0x13
push ecx
mov eax, esp
mov dword [esp + 0x4c], esp
push ebx
mov dword [eax], esi
call edi
mov byte [esp + 0x9c], 0x14
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x54]
lea ecx, [esi + 0x18]
push ecx
lea ecx, [eax + 0x14]
push edx
mov byte [esp + 0xa4], 8
call fcn.004255a0
add esp, 0x2c
cmp dword [esp + 0x18], 0
jne 0x42b2bd
mov byte [esp + 0x78], 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42a926
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x42a926
cmp byte [edx + 0x10], 0
jne 0x42b346
lea eax, [esp + 0x1c]
push eax
call fcn.004030f0
mov byte [esp + 0x78], 2
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x50]
mov eax, esp
xor esi, esi
mov dword [eax], ecx
add ecx, 4
mov dword [esp + 0x5c], esp
push ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x64], 0xff
mov dword [esp + 0x68], esi
lea ebp, [esp + 0x48]
lea ebx, [esp + 0x4c]
call edi
mov byte [esp + 0x94], 3
mov byte [esp + 0x94], 2
mov edx, ebp
mov ecx, ebx
call fcn.00420ad0
mov edi, eax
add esp, 0x1c
cmp edi, esi
je 0x42af17
lea ecx, [esp + 0x4c]
push ecx
call fcn.004287a0
mov byte [esp + 0x78], 4
lea eax, [esp + 0x1c]
lea ebx, [esp + 0x4c]
call fcn.00406760
mov ebp, dword [esp + 0x2c]
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
lea eax, [esp + 0x20]
push eax
push edx
mov word [esp + 0x5c], bp
mov dword [esp + 0x60], edi
call fcn.00406380
mov byte [esp + 0x7c], 5
mov byte [esp + 0x7c], 4
call fcn.0042a7c0
xor ebx, ebx
add esp, 4
cmp al, bl
je 0x42ae57
lea ecx, [esp + 0x40]
push ecx
call fcn.004030f0
mov byte [esp + 0x78], 6
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x9c]
lea edx, [eax + 0x10]
push edx
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
push edx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x64]
push ecx
mov edx, esp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x60], ebx
mov dword [esp + 0x84], esp
mov dword [edx], ebx
mov byte [esp + 0xa0], 7
mov edx, dword [esp + 0x58]
push edx
mov byte [esp + 0xa4], 6
mov edx, eax
call fcn.0042b4b0
cmp eax, ebx
mov eax, dword [esp + 0x84]
mov ebx, dword [eax + 0x30]
mov dword [esp + 0x60], esi
mov ebp, eax
jne 0x42adcf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x44]
push eax
movzx eax, byte [edx + 0x13]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
movzx edx, byte [esp + 0x43]
push edi
push eax
movzx eax, byte [esp + 0x4a]
push ecx
push edx
push eax
mov eax, dword [esp + 0x54]
movzx ecx, ah
push ecx
mov ecx, dword [esp + 0x74]
movzx edx, al
movzx eax, word [esp + 0x60]
push edx
push eax
push ecx
push str.SOCKS_FAIL__s:_d__destip_d._d._d._d__err_u__reason_u__ct_d__remoteSk__d___fCh_d__tuk_d__dur_u__amd_d__nh_d__acsc_u
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
push 7
mov ebx, 0x604408
mov dword [eax + 0xc], esi
call fcn.00446ca0
add esp, 0x58
mov byte [esp + 0x78], 4
lea edx, [esp + 0x40]
push edx
call fcn.00403090
mov byte [esp + 0x78], 2
lea eax, [esp + 0x4c]
push eax
call fcn.0042b460
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403090
jmp 0x42b346
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x94]
movzx ecx, byte [eax + 0x13]
movzx eax, byte [esp + 0x37]
push ecx
movzx ecx, byte [esp + 0x3a]
push edx
push edi
push eax
mov eax, dword [esp + 0x44]
push ecx
movzx ecx, word [esp + 0x50]
movzx edx, ah
push edx
mov edx, dword [esp + 0x68]
movzx eax, al
push eax
push ecx
push edx
push str.SOCKS__s:_d__OK__destip_d._d._d._d__ct_d__remoteSk__d___tuk_d__dur_u__amd_d__nh_d__acsc_u
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
push 7
mov ebx, 0x604408
mov dword [eax + 0xc], esi
call fcn.00446ca0
add esp, 0x4c
mov byte [esp + 0x78], 4
lea eax, [esp + 0x40]
push eax
call fcn.00403090
jmp 0x42aef4
mov ecx, dword [esp + 0x84]
push ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x58], 5
mov esi, dword [ecx + 0xc]
push ebx
push eax
call fcn.0042a710
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0xc]
add esp, 0xc
cmp ecx, 0xffffffff
je 0x42ae95
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x84]
mov ebx, dword [eax + 0x30]
xor esi, esi
mov dword [esp + 0x60], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x94]
movzx ecx, byte [eax + 0x13]
mov eax, dword [esp + 0x2c]
push ecx
movzx edx, bp
push edx
push eax
push str.SOCKS_REFUSE__s:_d__tuk_d__dur_u__amd_d__nh_d__acsc_u
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
push 7
mov ebx, 0x604408
mov dword [eax + 0xc], esi
call fcn.00446ca0
add esp, 0x34
mov byte [esp + 0x78], 2
lea ecx, [esp + 0x4c]
push ecx
call fcn.0042b460
mov byte [esp + 0x78], 1
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
jmp 0x42b346
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0xc]
cmp ecx, 0xffffffff
je 0x42af34
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x84]
mov ebx, dword [eax + 0x30]
mov dword [esp + 0x50], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
movzx eax, byte [edx + 0x13]
mov edx, dword [esp + 0x30]
push eax
movzx eax, word [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
push str.SOCKS_INVALID__s:_d__err_u__r_u__tuk_d__dur_u__etrc_u__etrb_d__amd_d__nh_d__acsc_u
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
push 7
mov ebx, 0x604408
mov dword [eax + 0xc], esi
call fcn.00446ca0
add esp, 0x44
mov byte [esp + 0x78], 1
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
jmp 0x42b346
mov eax, dword [esp + 0x84]
cmp byte [eax + 0x10], 0
je 0x42afdb
mov byte [esp + 0x78], 1
lea eax, [esp + 0x1c]
call fcn.0042d520
jmp 0x42b346
call fcn.00499fb0
test eax, eax
je 0x42aff8
lea ebx, [esi + 0xc]
push ebx
call fcn.0049ac70
add esp, 4
test al, al
je 0x42b1ad
lea ecx, [esp + 0x2c]
push ecx
call fcn.004030f0
mov byte [esp + 0x78], 0xb
xor ecx, ecx
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x98]
mov ebx, dword [eax + 0xc]
lea edx, [esp + 0x38]
push edx
lea edx, [eax + 0x10]
push edx
mov edx, dword [eax + 0x30]
push edx
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
lea eax, [esi + 4]
mov dword [esp + 0x84], esp
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x4c], ecx
lea ebp, [esp + 0x58]
call edi
mov byte [esp + 0xa0], 0xc
mov ecx, dword [esp + 0x58]
push ecx
mov byte [esp + 0xa4], 0xb
mov ecx, ebp
mov edx, ebx
call fcn.0042b4b0
xor edi, edi
test eax, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x50], edi
jne 0x42b136
mov ebx, dword [eax + 0x30]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x24]
sub eax, ecx
push eax
mov eax, dword [esp + 0x8c]
movzx ecx, byte [eax + 0x13]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x48]
push eax
movzx eax, byte [esp + 0x3b]
push edi
push ecx
movzx ecx, byte [esp + 0x42]
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
movzx ecx, word [esi + 0x10]
movzx edx, ah
push edx
mov edx, dword [esp + 0x58]
movzx eax, al
push eax
push ecx
push edx
push str.CONNECT__s:_d__FAIL__destip_d._d._d._d__err_u__reason_u__ube_X__remoteSk__d___fCh_d__tuk_d__dur_u__acsc_u
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
push 7
mov ebx, 0x604408
mov dword [eax + 0xc], edi
call fcn.00446ca0
add esp, 0x50
mov byte [esp + 0x78], 8
lea eax, [esp + 0x2c]
push eax
call fcn.00403090
mov byte [esp + 0x78], 1
lea eax, [esp + 0x1c]
call fcn.0042d520
jmp 0x42b346
mov ebp, dword [eax + 0x30]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push ecx
movzx ecx, byte [esp + 0x2a]
push eax
movzx eax, byte [esp + 0x2f]
push edx
push 0
push eax
mov eax, dword [esp + 0x38]
push ecx
movzx ecx, word [esi + 0x10]
movzx edx, ah
push edx
mov edx, dword [esp + 0x48]
movzx eax, al
push eax
push ecx
push edx
push str.CONNECT__s:_d__OK__destip_d._d._d._d__ube_X__remoteSk__d___dur_u__acsc_u
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
push 7
mov ebx, 0x604408
mov dword [eax + 0xc], edi
call fcn.00446ca0
add esp, 0x40
mov byte [esp + 0x78], 8
lea eax, [esp + 0x2c]
push eax
call fcn.00403090
jmp 0x42b2eb
mov ecx, dword [esp + 0x84]
movzx esi, word [esi + 0x10]
mov edx, dword [ecx + 0x30]
mov ecx, dword [ebx]
push esi
push ecx
push str.CONNECT__s:_d__FAIL__Forbid_by_post_mon
xor eax, eax
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
push 7
mov ebx, 0x604408
mov dword [esp + 0x70], eax
mov dword [ecx + 0xc], eax
call fcn.00446ca0
add esp, 0x20
mov byte [esp + 0x78], 1
lea eax, [esp + 0x1c]
call fcn.0042d520
jmp 0x42b346
mov ebx, dword [eax + 0x30]
push ecx
mov eax, esp
lea edx, [esi + 4]
mov dword [esp + 0x68], esp
push edx
mov dword [eax], esi
call edi
mov byte [esp + 0x84], 0xd
push ecx
mov ecx, dword [esp + 0x44]
mov eax, esp
mov dword [eax], ecx
add ecx, 4
mov dword [esp + 0x30], esp
push ecx
call edi
mov byte [esp + 0x88], 0xe
mov eax, dword [esp + 0x40]
push eax
call fcn.00420f70
push eax
mov byte [esp + 0x90], 8
mov ecx, ebx
call fcn.004216d0
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0xc], 0xffffffff
jmp 0x42b2eb
mov ebx, dword [eax + 0x30]
push ecx
mov eax, esp
mov dword [eax], esi
lea eax, [esi + 4]
mov dword [esp + 0x68], esp
push eax
call edi
mov byte [esp + 0x84], 0x11
push ecx
mov ecx, dword [esp + 0x44]
mov eax, esp
mov dword [eax], ecx
add ecx, 4
mov dword [esp + 0x30], esp
push ecx
call edi
mov byte [esp + 0x88], 0x12
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00420f70
push eax
mov byte [esp + 0x90], 8
mov ecx, ebx
call fcn.004216d0
mov edx, dword [esp + 0x84]
mov dword [edx + 0xc], 0xffffffff
jmp 0x42b2eb
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0xc]
jmp 0x42b2df
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0xc]
jmp 0x42b2df
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x42b2eb
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [esp + 0x78], 1
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42b346
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x42b346
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x42b320
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [esp + 0x78], 1
lea eax, [esp + 0x1c]
call fcn.0042d520
jmp 0x42b346
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x42b346
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x84]
cmp byte [eax + 0x10], 0
jne 0x42b3de
mov edi, dword [esp + 0x30]
lea esi, [edi + 0x148]
xor ebp, ebp
mov dword [esp + 0x20], ebp
test esi, esi
je 0x42b378
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, esi
mov dword [esp + 0x20], ebp
mov byte [esp + 0x78], 0x15
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x60]
add edi, 0x128
push edx
call fcn.0042d420
mov esi, dword [esp + 0x5c]
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
test esi, esi
je 0x42b3a6
cmp esi, eax
je 0x42b3ab
call fcn.004a35f3
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x42b3c0
push eax
push esi
lea eax, [esp + 0x64]
push eax
push edi
call fcn.0042d130
lea esi, [esp + 0x84]
call fcn.0042d4b0
mov byte [esp + 0x78], 1
test ebp, ebp
je 0x42b3ea
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42b3ea
lea esi, [esp + 0x84]
call fcn.0042d4b0
mov byte [esp + 0x78], 0
mov esi, dword [esp + 0x34]
test esi, esi
je 0x42b40f
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42b40f
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x78], 0xffffffff
mov esi, dword [esp + 0x84]
test esi, esi
je 0x42b43e
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42b43e
test esi, esi
je 0x42b43e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004a314d
add esp, 0x68
ret 8