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

Disassembly:
mov eax, 0x1654
call fcn.006d05d0
mov eax, dword [0x93e25c]
mov dword [esp + 0x1650], eax
push ebx
push ebp
lea eax, [esp + 0x658]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, ecx
mov ecx, dword [0x9749e0]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x454]
mov ebp, eax
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], ecx
and eax, 0xfffffffb
push edx
lea ecx, [ebx + 0x60]
mov dword [esp + 0x18], 0x1000
and ebp, 4
mov dword [edi + 0x454], eax
call fcn.0040a335
mov edx, dword [edi + 0x454]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
or edx, ebp
test eax, eax
mov dword [edi + 0x454], edx
je 0x57eccc
cmp ecx, dword [esp + 0x14]
jae FreeLibrary
mov byte [ecx + eax], 0
jmp 0x57ecd6
push ecx
lea ecx, [esp + 0x10]
call fcn.0040a849
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], ecx
mov edx, dword [edi + 0x2c]
mov eax, dword [edx + 0x514]
mov ecx, dword [edi + 0x30]
add eax, ecx
mov dword [esi + 0xb4], eax
mov edx, dword [edi + 0x34]
mov ebp, dword [edi + 0x30]
mov ecx, dword [edi + 0x494]
add edx, ebp
push edx
push eax
push ecx
call fcn.00404c05
sub eax, dword [esi + 0xb4]
mov dword [esi + 0xb8], eax
add esp, 0xc
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esi + 0xf0], 1
mov dword [esi + DeregisterEventSourcexf4], 0
call fcn.0040871f
lea ecx, [esp + 0x38]
mov dword [esi + 0xac], ecx
mov ecx, ebx
mov dword [esi + 0xb0], 0x20
call fcn.0040a96b
mov ebp, eax
cmp byte [ebx + 0x776], 2
jne 0x57ed98
mov ecx, ebx
call fcn.0040a96b
test eax, eax
jne 0x57ed98
mov edx, dword [0x974690]
mov eax, dword [edx + 0x588]
push eax
push 0x54a
push 1
push edi
call fcn.00407766
add esp, 0x10
mov byte [ebx + InitializeSecurityDescriptorx776], 0
movzx eax, byte [ebx + 0x776]
cdq
mov dword [esi + 0x10c], edx
mov dword [esi + 0x108], eax
mov ecx, dword [ebx + 0x518]
mov edx, dword [ecx]
mov dword [esi + 0xd4], edx
mov eax, dword [ecx + 4]
mov dword [esi + 0xd8], eax
mov ecx, dword [ebx + 0x518]
mov edx, dword [ecx + 8]
mov dword [esi + 0xdc], edx
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xe0], eax
movzx eax, byte [ebx + 0x84c]
cdq
mov dword [esi + 0x114], edx
mov dword [esi + 0x110], eax
movzx eax, byte [ebx + 0x777]
cdq
mov dword [esi + 0x11c], edx
xor edx, edx
cmp ebp, edx
mov dword [esi + 0x118], eax
je 0x57ee20
mov ecx, dword [esi + 0x108]
mov eax, 1
cmp ecx, eax
jne 0x57ee22
cmp dword [esi + 0x10c], edx
jne 0x57ee22
xor eax, eax
xor ecx, ecx
mov dword [esi + 0xf8], eax
or eax, ecx
mov dword [esi + 0xfc], ecx
je 0x57ee86
mov ecx, dword [ebx + 0x36c]
cmp ecx, edx
je 0x57ee86
mov edi, edi
cmp dword [ecx + 0x70], edx
je 0x57ee53
mov eax, dword [ecx + 0xf8]
or eax, dword [ecx + 0xfc]
je 0x57ee7a
cmp dword [ecx + 0x5c], edx
jne 0x57ee7a
mov eax, ecx
lea ebx, [ebx]
cmp dword [eax + 0x148], edx
jne 0x57ee7a
mov eax, dword [eax + 0x184]
cmp eax, edx
jne RegisterServiceCtrlHandlerA
mov ecx, dword [ecx]
cmp ecx, edx
jne 0x57ee40
jmp 0x57ee86
mov dword [esi + 0xf8], edx
mov dword [esi + 0xfc], edx
mov ecx, dword [esi + 0xc]
mov edx, dword [0x81f924]
push ecx
push edx
push str._s__s_
lea eax, [esp + 0x68]
push 0x200
push eax
call fcn.0062b5c0
lea ecx, [esp + 0x70]
push ecx
mov edx, ecx
push edx
call fcn.005e2e40
lea eax, [esp + 0x78]
add esp, 0x1c
mov dword [esp + 0x28], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57eec0
sub eax, edx
mov edx, dword [esi + 0x14]
xor ebp, ebp
push ebp
push 0x974550
lea ecx, [esp + 0x264]
push edx
mov dword [esp + 0x38], eax
mov eax, ecx
push 0x200
push eax
mov dword [esp + 0x34], ecx
call fcn.0062b600
lea ecx, [esp + 0x270]
sub eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xcc]
add esp, 0x14
cmp eax, ebp
jne 0x57ef17
lea edx, [esi + 0x1b0]
mov dword [esi + 0xcc], edx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 4
push ebp
push ecx
lea eax, [esp + 0x468]
push edx
push eax
mov dword [esp + 0x44], eax
call fcn.005dc850
lea eax, [esp + 0x470]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ef42
mov ecx, dword [esp + 0x30]
sub eax, edx
push ebp
push ecx
mov dword [esp + 0x3c], eax
call fcn.006d2006
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1664]
jne TlsFree
cmp eax, ebp
jne 0x57ef8a
mov edx, dword [esi + 0x10]
push edx
push ebp
push 0x41a
call fcn.005db890
add esp, 0xc
or edi, 0xffffffff
jmp 0x57f0f8
mov eax, dword [edi + 0x14]
push ebp
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040bdf2
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x57efac
mov edi, 1
jmp 0x57f0f8
mov al, byte [ebp + 0x14]
test al, al
je 0x57eff7
lea edx, [ebp + 0xc]
push edx
push 0x777d08
call fcn.0040ad30
add esp, 8
test eax, eax
je 0x57eff7
mov eax, dword [edi + 0x14]
push 0x82548c
push 1
push QueryPerformanceCounter
push eax
push esi
mov ecx, ebp
call fcn.004095bb
test al, al
je 0x57f040
mov cl, byte [edi + 0x2c8]
neg cl
sbb ecx, ecx
mov edi, ecx
xor ebp, ebp
jmp 0x57f0f8
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
push 0x772754
push edx
push eax
push 0
push 0x543
call fcn.005db890
add esp, 0x14
or edi, 0xffffffff
xor ebp, ebp
jmp SetFilePointer
cmp eax, 1
jne 0x57f042
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push ecx
push edx
push ebp
push DeleteFileA
call fcn.005db890
add esp, 0x10
or edi, 0xffffffff
jmp MoveFileA
xor ebp, ebp
mov eax, dword [esi + 0xf8]
or eax, dword [esi + 0xfc]
je 0x57f08b
cmp dword [ebx + 0x2e8], ebp
jne 0x57f08b
mov ecx, dword [ebx + 0x36c]
cmp dword [ecx], ebp
jne 0x57f08b
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
push ecx
push edx
push 4
push eax
call fcn.0040babe
add esp, 0x10
test eax, eax
je 0x57f08b
mov dword [esi + 0xf8], ebp
mov dword [esi + 0xfc], ebp
mov edx, dword [esi + 0x118]
or edx, dword [esi + 0x11c]
je 0x57f0c2
mov eax, dword [esi + 0xf8]
or eax, dword [esi + 0xfc]
jne 0x57f0c2
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
push ecx
push edx
push ebp
push 0x558
call fcn.005db890
add esp, 0x10
or edi, 0xffffffff
jmp 0x57f0f8
push 3
push 0x839d68
push esi
push ReadFile
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00408071
add esp, 0x18
test al, al
je 0x57f143
mov al, byte [edi + 0x2c8]
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
mov edi, edx
cmp dword [esp + 0x18], ebp
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa8], ebp
mov dword [esi + 0xac], ebp
mov dword [esi + 0xb0], ebp
je 0x57f12b
mov eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.005d8be0
add esp, 4
mov eax, edi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1650]
call fcn.006cedd0
add esp, 0x1654
ret
cmp dword [esp + 0x18], ebp
je 0x57f15e
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.005d8be0
add esp, 4
mov ecx, dword [esp + 0x165c]
pop edi
pop ebp
xor eax, eax
pop ebx
call fcn.006cedd0
add esp, 0x1654
ret