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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x69c965
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x76f950]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
cmp byte [0x77a68f], 0
je 0x42d487
cmp byte [0x772af7], 0
mov byte [0x77a68f], 0
je 0x42c7b8
mov cl, byte [0x77aea0]
call fcn.004e1cd0
mov eax, dword [0x7892cc]
mov edi, dword [0x7892c8]
test eax, eax
cmovne edi, eax
test edi, edi
jne 0x42c7d0
xor esi, esi
jmp 0x42c7eb
cmp word [edi], 0
jne 0x42c7da
xor esi, esi
jmp 0x42c7eb
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0040bb30
mov dword [esp + 0x14], esi
mov dword [esp + 0x4a0], 0
xor dl, dl
lea ecx, [esp + 0x14]
call fcn.004e14a0
mov dword [esp + 0x4a0], 0xffffffff
test esi, esi
je 0x42c826
mov eax, dword [esi]
test eax, eax
jne 0x42c823
mov ecx, esi
call fcn.004df580
jmp 0x42c826
dec eax
mov dword [esi], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x4a0], 1
push str.Exception_:
lea ecx, [esp + 0x14]
call fcn.0040bd10
mov eax, dword [0x795728]
lea ecx, [eax - 3]
cmp ecx, 0xb
ja case.default.0x42c858
jmp dword [ecx*4 + 0x42d4ac]
mov esi, str.Divide_By_Zero
jmp 0x42c8b1
mov esi, str.Range_Error
jmp 0x42c8b1
mov esi, str.Integer_Overflow
jmp 0x42c8b1
mov esi, str.Invalid_Operation
jmp 0x42c8b1
mov esi, str.Zero_Divide
jmp 0x42c8b1
mov esi, str.Overflow
jmp 0x42c8b1
mov esi, str.Underflow
jmp 0x42c8b1
mov esi, str.Invalid_Cast
jmp 0x42c8b1
mov esi, str.Access_Violation
jmp 0x42c8b1
mov esi, str.Privilege_Violation
jmp 0x42c8b1
mov esi, str.Control_C
jmp 0x42c8b1
mov esi, str.Stack_Overflow
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x42c8cb
cmp dword [ecx], 0
je 0x42c8cb
lea ecx, [esp + 0x10]
call fcn.004db0b0
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.004dfa30
mov esi, eax
mov dword [esp + 0x10], esi
mov eax, dword [0x795728]
jmp 0x42c8e3
mov esi, dword [esp + 0x10]
cmp eax, 0xb
jne 0x42c960
mov ecx, dword [0x795734]
mov edx, 0x6e3c60
test ecx, ecx
jne 0x42c8fe
mov eax, str.read
jmp 0x42c915
cmp ecx, 1
jne 0x42c90a
mov eax, str.write
jmp 0x42c915
mov eax, str.execute
cmp ecx, 8
cmovne eax, edx
push dword [0x795738]
push eax
push str.__ls_access_to_0x_p_
lea eax, [esp + 0x90]
push 0x100
push eax
call fcn.0063439c
add esp, 0x14
test esi, esi
je 0x42c94c
cmp dword [esi], 0
je 0x42c94c
lea ecx, [esp + 0x10]
call fcn.004db0b0
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x84]
mov ecx, esi
call fcn.004dfa30
mov esi, eax
mov dword [esp + 0x10], esi
push dword [0x795730]
lea eax, [esp + 0x88]
push dword [0x79572c]
push str.__at__EIP__0x_p___ESP__0x_p
push 0x100
push eax
call fcn.0063439c
add esp, 0x14
test esi, esi
je 0x42c99c
cmp dword [esi], 0
je 0x42c99c
lea ecx, [esp + 0x10]
call fcn.004db0b0
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x84]
mov ecx, esi
call fcn.004dfa30
cmp word [0x795a08], 0
mov dword [esp + 0x10], eax
je 0x42ca45
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
push 0x795a08
mov ecx, esi
call fcn.0040bb30
mov dword [esp + 0x14], esi
mov byte [esp + 0x4a0], 2
lea eax, [esp + 0x14]
push eax
mov edx, str.___in
lea ecx, [esp + 0x1c]
call fcn.004dbbb0
add esp, 4
mov byte [esp + 0x4a0], 3
push eax
lea ecx, [esp + 0x14]
call fcn.00406b60
mov byte [esp + 0x4a0], 2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42ca27
mov ecx, dword [eax]
test ecx, ecx
jne 0x42ca24
mov ecx, eax
call fcn.004df580
jmp 0x42ca27
dec ecx
mov dword [eax], ecx
mov byte [esp + 0x4a0], 1
test esi, esi
je 0x42ca45
mov eax, dword [esi]
test eax, eax
jne 0x42ca42
mov ecx, esi
call fcn.004df580
jmp 0x42ca45
dec eax
mov dword [esi], eax
xor dl, dl
lea ecx, [esp + 0x10]
call fcn.004e14a0
mov ecx, 0x79573c
call fcn.0042bc80
push str.Codes_at_EIP_:
lea ecx, [esp + 0x14]
call fcn.0040bd10
mov esi, dword [esp + 0x10]
xor edi, edi
cmp dword [0x795c70], edi
jle 0x42cb29
lea ebx, [ebx]
movzx eax, byte [edi + 0x795c10]
push eax
push 0x6e3d30
lea eax, [esp + 0x8c]
push 0x100
push eax
call fcn.0063439c
add esp, 0x10
test esi, esi
je 0x42caf1
cmp dword [esi], 0
je 0x42cab8
lea ecx, [esp + 0x10]
call fcn.004db0b0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x42caf1
cmp word [esp + 0x84], 0
lea eax, [esp + 0x84]
je 0x42cad9
mov edi, edi
add eax, 2
cmp word [eax], 0
jne 0x42cad0
lea ecx, [esp + 0x84]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.004179b0
jmp 0x42cb18
cmp word [esp + 0x84], 0
jne 0x42cb00
xor esi, esi
jmp 0x42cb18
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call fcn.0040bb30
inc edi
mov dword [esp + 0x10], esi
cmp edi, dword [0x795c70]
jl 0x42ca80
xor dl, dl
lea ecx, [esp + 0x10]
call fcn.004e14a0
call fcn.004df4c0
mov edi, eax
push 0xffffffffffffffff
push str.Stack_data_and_data_pointed_by_each_stack_data_:
mov ecx, edi
call fcn.0040bb30
mov dword [esp + 0x14], edi
mov byte [esp + 0x4a0], 4
xor dl, dl
lea ecx, [esp + 0x14]
call fcn.004e14a0
mov byte [esp + 0x4a0], 1
test edi, edi
je 0x42cb7e
mov eax, dword [edi]
test eax, eax
jne 0x42cb7b
mov ecx, edi
call fcn.004df580
jmp 0x42cb7e
dec eax
mov dword [edi], eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [0x795db4], eax
jle 0x42cd82
mov dword [esp + 0x1c], 0x795db8
jmp 0x42cba0
lea edi, [eax*4]
mov eax, dword [0x795730]
push dword [edi + 0x795c74]
add eax, edi
push edi
push eax
push str.0x_p__ESP_3d__:_0x_p_:
lea eax, [esp + 0x94]
push 0x100
push eax
mov dword [esp + 0x38], edi
call fcn.0063439c
add esp, 0x18
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x14]
call fcn.0040bd10
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x7962b8], ebx
jle 0x42cd5d
jmp 0x42cc00
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + ebx]
push eax
push 0x6e3dd8
lea eax, [esp + 0x8c]
push 0x100
push eax
call fcn.0063439c
add esp, 0x10
test esi, esi
je 0x42cd21
cmp dword [esi], 0
je 0x42cce5
mov edi, dword [esi + 4]
test edi, edi
jne 0x42cc46
lea edi, [esi + 8]
test edi, edi
jne 0x42cc46
xor ebx, ebx
jmp 0x42cc61
cmp word [edi], 0
jne 0x42cc50
xor ebx, ebx
jmp 0x42cc61
call fcn.004df4c0
mov ebx, eax
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.0040bb30
mov eax, dword [esi]
test eax, eax
jne 0x42ccd4
mov edi, dword [0x77ae88]
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x4a0], 5
mov eax, dword [esi + 4]
test eax, eax
je 0x42cc93
add eax, 0xfffffffc
push eax
call fcn.00634402
add esp, 4
mov ecx, dword [0x77ae80]
mov eax, dword [0x77ae90]
dec dword [0x77ae94]
mov dword [esi + 0x38], 0
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x77ae80], ecx
mov byte [esp + 0x4a0], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x77ae94], 0
jne 0x42ccd7
call fcn.004df050
jmp 0x42ccd7
dec eax
mov dword [esi], eax
mov esi, ebx
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
test esi, esi
je 0x42cd21
cmp word [esp + 0x84], 0
lea eax, [esp + 0x84]
je 0x42cd09
jmp 0x42cd00
add eax, 2
cmp word [eax], 0
jne 0x42cd00
lea ecx, [esp + 0x84]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.004179b0
jmp 0x42cd48
cmp word [esp + 0x84], 0
jne 0x42cd30
xor esi, esi
jmp 0x42cd48
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call fcn.0040bb30
inc ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebx
cmp ebx, dword [edi + 0x7962b8]
jl 0x42cc00
xor dl, dl
lea ecx, [esp + 0x10]
call fcn.004e14a0
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x10
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [0x795db4]
jl 0x42cba0
call fcn.004df4c0
mov edi, eax
push 0xffffffffffffffff
push str.Call_Trace_:
mov ecx, edi
call fcn.0040bb30
mov dword [esp + 0x20], edi
mov byte [esp + 0x4a0], 6
xor dl, dl
lea ecx, [esp + 0x20]
call fcn.004e14a0
mov byte [esp + 0x4a0], 1
test edi, edi
je 0x42cdcc
mov eax, dword [edi]
test eax, eax
jne 0x42cdc9
mov ecx, edi
call fcn.004df580
jmp 0x42cdcc
dec eax
mov dword [edi], eax
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [0x796478], edi
jle 0x42d3fc
mov edi, edi
push dword [edi*4 + 0x7963f8]
lea eax, [esp + 0x88]
push str.0x_p_:
push 0x100
push eax
call fcn.0063439c
add esp, 0x10
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x14]
call fcn.0040bd10
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [edi*4 + 0x7967bc], ebx
jle 0x42cf99
mov eax, edi
imul eax, eax, 0x1a
lea eax, [eax + 0x79647c]
mov dword [esp + 0x20], eax
jmp 0x42ce40
movzx eax, byte [eax + ebx]
push eax
push str.0x_02X
lea eax, [esp + 0x8c]
push 0x100
push eax
call fcn.0063439c
add esp, 0x10
test esi, esi
je 0x42cf58
cmp dword [esi], 0
je 0x42cf21
mov edi, dword [esi + 4]
test edi, edi
jne 0x42ce82
lea edi, [esi + 8]
test edi, edi
jne 0x42ce82
xor ebx, ebx
jmp 0x42ce9d
cmp word [edi], 0
jne 0x42ce8c
xor ebx, ebx
jmp 0x42ce9d
call fcn.004df4c0
mov ebx, eax
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.0040bb30
mov eax, dword [esi]
test eax, eax
jne 0x42cf10
mov edi, dword [0x77ae88]
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x4a0], 7
mov eax, dword [esi + 4]
test eax, eax
je 0x42cecf
add eax, 0xfffffffc
push eax
call fcn.00634402
add esp, 4
mov ecx, dword [0x77ae80]
mov eax, dword [0x77ae90]
dec dword [0x77ae94]
mov dword [esi + 0x38], 0
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x77ae80], ecx
mov byte [esp + 0x4a0], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x77ae94], 0
jne 0x42cf13
call fcn.004df050
jmp 0x42cf13
dec eax
mov dword [esi], eax
mov esi, ebx
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x42cf58
cmp word [esp + 0x84], 0
lea eax, [esp + 0x84]
je 0x42cf40
add eax, 2
cmp word [eax], 0
jne 0x42cf37
lea ecx, [esp + 0x84]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.004179b0
jmp 0x42cf7f
cmp word [esp + 0x84], 0
jne 0x42cf67
xor esi, esi
jmp 0x42cf7f
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call fcn.0040bb30
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, dword [edi*4 + 0x7967bc]
jl 0x42ce40
push 0x1c
lea eax, [esp + 0x3c]
push eax
push dword [edi*4 + 0x7963f8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [esp + 0x48], 0x1000
jne 0x42d3e0
push 0x104
lea eax, [esp + 0x288]
push eax
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42d3e0
xor eax, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp word [esp + 0x284], ax
jne 0x42d00f
xor ecx, ecx
jmp 0x42d02f
lea ecx, [esp + 0x284]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d020
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x288]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040ae70
mov byte [esp + 0x4a0], 8
lea edx, [esp + 0x54]
lea ecx, [esp + 0x6c]
call fcn.0042a170
mov edi, eax
mov byte [esp + 0x4a0], 9
cmp dword [edi + 0x14], 8
jb 0x42d068
mov edi, dword [edi]
test edi, edi
jne 0x42d070
xor ebx, ebx
jmp 0x42d08b
cmp word [edi], 0
jne 0x42d07a
xor ebx, ebx
jmp 0x42d08b
call fcn.004df4c0
mov ebx, eax
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.0040bb30
mov dword [esp + 0x30], ebx
mov byte [esp + 0x4a0], 0xa
test ebx, ebx
je 0x42d1b1
test esi, esi
je 0x42d165
cmp dword [esi], 0
je 0x42d165
mov edi, dword [esi + 4]
test edi, edi
jne 0x42d0c4
lea edi, [esi + 8]
test edi, edi
jne 0x42d0c4
mov dword [esp + 0x1c], edi
jmp 0x42d0e7
cmp word [edi], 0
jne 0x42d0d4
mov dword [esp + 0x1c], 0
jmp 0x42d0e7
call fcn.004df4c0
push 0xffffffffffffffff
push edi
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.0040bb30
mov eax, dword [esi]
test eax, eax
jne 0x42d15a
mov edi, dword [0x77ae88]
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x4a0], 0xb
mov eax, dword [esi + 4]
test eax, eax
je 0x42d119
add eax, 0xfffffffc
push eax
call fcn.00634402
add esp, 4
mov ecx, dword [0x77ae80]
mov eax, dword [0x77ae90]
dec dword [0x77ae94]
mov dword [esi + 0x38], 0
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x77ae80], ecx
mov byte [esp + 0x4a0], 0xa
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x77ae94], 0
jne 0x42d15d
call fcn.004df050
jmp 0x42d15d
dec eax
mov dword [esi], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
mov edi, dword [ebx + 4]
test edi, edi
jne 0x42d173
lea edi, [ebx + 8]
test edi, edi
je 0x42d1ad
test esi, esi
jne 0x42d18f
cmp word [edi], si
je 0x42d1ad
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0040bb30
jmp 0x42d1ad
cmp word [edi], 0
mov eax, edi
je 0x42d1a0
add eax, 2
cmp word [eax], 0
jne 0x42d197
sub eax, edi
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.004179b0
mov dword [esp + 0x10], esi
mov byte [esp + 0x4a0], 9
test ebx, ebx
je 0x42d233
mov eax, dword [ebx]
test eax, eax
jne 0x42d230
mov edi, dword [0x77ae88]
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x4a0], 0xc
mov eax, dword [ebx + 4]
test eax, eax
je 0x42d1ef
add eax, 0xfffffffc
push eax
call fcn.00634402
add esp, 4
mov ecx, dword [0x77ae80]
mov eax, dword [0x77ae90]
dec dword [0x77ae94]
mov dword [ebx + 0x38], 0
mov dword [eax + ecx*4], ebx
inc ecx
mov dword [0x77ae80], ecx
mov byte [esp + 0x4a0], 9
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x77ae94], 0
jne 0x42d233
call fcn.004df050
jmp 0x42d233
dec eax
mov dword [ebx], eax
mov byte [esp + 0x4a0], 8
cmp dword [esp + 0x80], 8
jb 0x42d251
push dword [esp + 0x6c]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
mov byte [esp + 0x4a0], 1
cmp dword [esp + 0x68], 8
jb 0x42d286
push dword [esp + 0x54]
call fcn.00633f98
add esp, 4
push dword [esp + 0x3c]
xor eax, eax
push str._base_0x_p
mov word [esp + 0x5c], ax
lea eax, [esp + 0x8c]
push 0x100
push eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
call fcn.0063439c
add esp, 0x10
test esi, esi
je 0x42d3b1
cmp dword [esi], 0
je 0x42d375
mov edi, dword [esi + 4]
test edi, edi
jne 0x42d2de
lea edi, [esi + 8]
test edi, edi
jne 0x42d2de
xor ebx, ebx
jmp 0x42d2f9
cmp word [edi], 0
jne 0x42d2e8
xor ebx, ebx
jmp 0x42d2f9
call fcn.004df4c0
mov ebx, eax
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.0040bb30
mov eax, dword [esi]
test eax, eax
jne 0x42d36c
mov edi, dword [0x77ae88]
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x4a0], 0xd
mov eax, dword [esi + 4]
test eax, eax
je 0x42d32b
add eax, 0xfffffffc
push eax
call fcn.00634402
add esp, 4
mov ecx, dword [0x77ae80]
mov eax, dword [0x77ae90]
dec dword [0x77ae94]
mov dword [esi + 0x38], 0
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x77ae80], ecx
mov byte [esp + 0x4a0], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x77ae94], 0
jne 0x42d36f
call fcn.004df050
jmp 0x42d36f
dec eax
mov dword [esi], eax
mov esi, ebx
mov dword [esp + 0x10], esi
test esi, esi
je 0x42d3b1
cmp word [esp + 0x84], 0
lea eax, [esp + 0x84]
je 0x42d399
jmp 0x42d390
add eax, 2
cmp word [eax], 0
jne 0x42d390
lea ecx, [esp + 0x84]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.004179b0
jmp 0x42d3d8
cmp word [esp + 0x84], 0
jne 0x42d3c0
xor esi, esi
jmp 0x42d3d8
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call fcn.0040bb30
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x18]
xor dl, dl
lea ecx, [esp + 0x10]
call fcn.004e14a0
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [0x796478]
jl 0x42cde0
mov dword [esp + 0x4a0], 0xffffffff
test esi, esi
je 0x42d487
mov eax, dword [esi]
test eax, eax
jne 0x42d484
mov edi, dword [0x77ae88]
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x4a0], 0xe
mov eax, dword [esi + 4]
test eax, eax
je 0x42d440
add eax, 0xfffffffc
push eax
call fcn.00634402
add esp, 4
mov ecx, dword [0x77ae80]
mov eax, dword [0x77ae90]
dec dword [0x77ae94]
mov dword [esi + 0x38], 0
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x77ae80], ecx
mov dword [esp + 0x4a0], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x77ae94], 0
jne 0x42d487
call fcn.004df050
jmp 0x42d487
dec eax
mov dword [esi], eax
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.00633732
mov esp, ebp
pop ebp
ret