Function at 0x474b6c
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
and dword [esp + 8], 0
push ebx
mov ebx, edx
mov dword [esp + 8], ecx
test ebx, ebx
je 0x4750d6
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x474b95
push 0xffffffffffffffff
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0xc8]
push esi
xor esi, esi
mov eax, dword [eax + 0xc]
test eax, eax
je 0x474ba7
mov esi, dword [eax]
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x474bbb
push 0
push 1
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp dword [ebx + 0x84], 0
push ebp
push edi
mov ebp, 0xffff
jne 0x474c52
push 0x394
push 0x763608
push 1
push 0x20
call fcn.005ce020
mov edi, eax
add esp, 0x10
mov dword [ebx + 0x84], edi
test edi, edi
je 0x4750db
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, 0x397
push edi
push 0x76368c
push 1
push ebp
call fcn.005ce020
mov ecx, dword [ebx + 0x84]
add esp, 0x10
mov dword [ecx + 4], eax
test eax, eax
jne 0x474c49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x7636ac
push esi
push edi
xor ecx, ecx
call fcn.0047145c
push edi
push 0x7636cc
push 0x7636ec
jmp 0x475105
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebp
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx]
sub eax, 0
je 0x47504e
sub eax, 1
je 0x47502d
sub eax, 1
je 0x474d64
sub eax, 1
jne 0x4750d3
push 2
pop edi
cmp dword [esp + 0x2c], edi
jl 0x4750d3
mov eax, dword [esp + 0x24]
mov ebp, edi
cmp byte [eax + ebp - 2], 0xd
jne 0x474c9f
cmp byte [eax + ebp - 1], 0xa
je 0x474cab
inc ebp
cmp ebp, dword [esp + 0x2c]
jle 0x474c91
jmp 0x4750d3
cmp ebp, edi
jne 0x474d59
xor edi, edi
inc edi
mov dword [ecx + 0x1c], edi
test esi, esi
je 0x474cfe
cmp dword [esi + 0x54], 0
je 0x474cfe
cmp dword [ebx + 0x7c], 0
jne 0x474d04
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0xec]
push eax
push dword [esi + 0x38]
lea eax, [esp + 0x18]
push dword [esi + 0x34]
push edi
push dword [ecx + 0x14]
push eax
push dword [ecx + 4]
push dword [ebx + 0xa4]
push 0
push ebx
call dword [esi + 0x54]
add esp, 0x28
cmp dword [ebx + 0x7c], 0
je 0x474d0f
and dword [ebx + 0x7c], 0
mov ecx, ebx
call fcn.004748fa
mov eax, dword [esp + 0x14]
test eax, eax
je 0x474d22
mov ecx, eax
call fcn.00469c24
test eax, eax
jne 0x474d59
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x474d52
cmp dword [eax + 4], 0
je 0x474d3d
push edi
push dword [eax + 4]
call fcn.005cdee0
pop ecx
pop ecx
push edi
push dword [ebx + 0x84]
call fcn.005cdee0
and dword [ebx + 0x84], 0
pop ecx
pop ecx
mov edx, ebx
call fcn.0047496d
mov eax, dword [esp + 0x28]
mov dword [eax], ebp
jmp 0x4750d3
mov edx, dword [esp + 0x2c]
mov edi, edx
cmp edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0x10]
cmovge edi, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x14]
je 0x474e3c
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
add eax, edx
cmp eax, dword [ecx + 0xc]
jle 0x474e0e
mov eax, dword [ecx + 8]
sub eax, dword [esp + 0x14]
add eax, edx
mov edx, ebp
cmp eax, ebp
push 0x3df
cmovg edx, eax
mov eax, dword [ecx + 0xc]
push 0x763714
push 1
add eax, edx
mov dword [esp + 0x20], edx
push eax
push dword [ecx + 4]
call fcn.005ce1d0
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x474df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x3e0
push esi
push edi
mov edx, 0x763734
xor ecx, ecx
call fcn.0047145c
push edi
push 0x763754
push 0x763774
jmp 0x475105
mov eax, dword [ebx + 0x84]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x84]
mov ecx, dword [esp + 0x14]
add dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x84]
push edi
push dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
sub edx, eax
add ecx, eax
call section..text
mov eax, dword [ebx + 0x84]
pop ecx
pop ecx
add dword [eax + 8], edi
mov eax, dword [esp + 0x18]
jmp 0x474e3f
xor eax, eax
inc eax
xor edx, edx
mov dword [esp + 0x10], edx
test esi, esi
je 0x474ffc
cmp dword [esi + 0x54], edx
je 0x474ffc
cmp dword [ebx + 0x7c], edx
jne 0x474ffc
test eax, eax
mov dword [esp + 0x10], edx
lea eax, [ebx + 0xec]
push eax
push dword [esi + 0x38]
push dword [esi + 0x34]
push edx
je 0x474f8e
push edi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x3c]
push dword [ebx + 0xa4]
push edx
push ebx
call dword [esi + 0x54]
mov ecx, dword [esp + 0x38]
add esp, 0x28
mov eax, dword [ebx + 0x84]
test ecx, ecx
jne 0x474f60
and dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x84]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x14], edi
mov esi, dword [ebx + 0x84]
mov edx, dword [esi + 8]
lea eax, [edx + ecx]
cmp eax, dword [esi + 0xc]
jle 0x474f33
sub edx, dword [esi + 0xc]
push 0x421
push 0x763798
push 1
lea eax, [edx + ecx]
cmp eax, ebp
cmovg ebp, eax
mov eax, dword [esi + 0xc]
add eax, ebp
push eax
push dword [esi + 4]
call fcn.005ce1d0
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x474f21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x422
push esi
push edi
mov edx, 0x7637b8
xor ecx, ecx
call fcn.0047145c
push edi
push 0x7637d8
push 0x7637f8
jmp 0x475105
mov eax, dword [ebx + 0x84]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x84]
add dword [eax + 0xc], ebp
mov ecx, dword [ebx + 0x84]
push edi
push dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
sub edx, eax
add ecx, eax
call section..text
mov eax, dword [ebx + 0x84]
pop ecx
pop ecx
add dword [eax + 8], edi
jmp 0x474ff6
xor edx, edx
cmp ecx, edi
je 0x474f77
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x84]
mov dword [eax + 0x14], edi
jmp 0x474ffc
mov dword [eax + 0x10], edx
mov eax, dword [ebx + 0x84]
mov dword [eax + 0x14], edx
mov eax, dword [ebx + 0x84]
mov dword [eax + 8], edx
jmp 0x474ffc
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ecx + 4]
add eax, dword [ecx + 0x10]
push eax
push dword [ebx + 0xa4]
push edx
push ebx
call dword [esi + 0x54]
mov ecx, dword [ebx + 0x84]
add esp, 0x28
mov esi, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp esi, eax
jne 0x474fe4
xor edx, edx
mov dword [ecx + 0x10], edx
mov eax, dword [ebx + 0x84]
mov dword [eax + 0x14], edx
mov eax, dword [ebx + 0x84]
mov dword [eax + 8], edx
jmp 0x474ff8
lea eax, [edx + esi]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx + 8]
mov dword [ecx + 0x14], eax
xor edx, edx
mov dword [esp + 0x10], edi
mov ecx, dword [ebx + 0x84]
mov eax, dword [esp + 0x10]
sub dword [ecx + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0x84]
cmp dword [eax + 0x18], edx
jne 0x4750d3
mov dword [eax], 1
jmp 0x4750d3
push 2
pop edi
cmp dword [esp + 0x2c], edi
jl 0x4750d3
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, dword [ebx + 0x84]
and dword [eax], 0
jmp 0x4750d3
cmp dword [esp + 0x2c], 3
jl 0x4750d3
push 2
pop edi
cmp dword [esp + 0x2c], edi
jle 0x4750d3
mov ecx, dword [esp + 0x24]
cmp byte [ecx + edi - 2], 0xd
jne 0x475070
cmp byte [edi + ecx - 1], 0xa
je 0x475079
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x475062
jmp 0x4750d3
push 1
lea eax, [edi - 2]
xor edx, edx
push 0x763710
push eax
call fcn.0046dd77
mov esi, eax
lea eax, [esp + 0x28]
push 0x10
push eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov byte [edx + ecx], 0
mov ecx, dword [esi]
push dword [ecx]
call fcn.005e7ab0
mov ecx, dword [ebx + 0x84]
add esp, 0x18
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx + 0x18]
neg eax
sbb eax, eax
add eax, 3
mov dword [ecx], eax
mov ecx, esi
call fcn.0046df18
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x394
push esi
push edi
mov edx, 0x763628
xor ecx, ecx
call fcn.0047145c
push edi
push 0x763648
push 0x763668
call fcn.004010b4
add esp, 0x18
push esi
call fcn.005aae60
int3