Function at 0x5c0320
Capabilities:
Delete file

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
push edi
xor edi, edi
test byte [esi + 0xdf1], 0x80
lea ebp, [esi + 0xdbc]
mov dword [esp + 0x14], edi
mov dword [esi + 0xdb4], edi
mov dword [esi + 0xdc4], edi
mov dword [ebp], edi
je 0x5c0461
push esi
push 0x6a0f60
push edi
push 0xffffffffffffffff
push 1
mov dword [esi + 0xdfc], edi
push edi
mov word [esi + 0xdf2], di
mov word [esi + 0xdf4], 0xffff
mov word [esi + 0xdf6], di
mov word [esi + 0xdfa], di
mov dword [esi + 0xe00], edi
mov dword [esi + 0xe04], edi
mov dword [esi + 0x19e], 0x200000
call fcn.005be2e0
add esp, 0x18
cmp eax, 1
jne 0x5c0454
test byte [esi + 0xdf0], 1
jne 0x5c03e6
mov edx, dword [esi + 0xdb0]
lea eax, [esp + 0x30]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.005bf6c0
add esp, 0x10
test eax, eax
je 0x5c03e6
mov eax, dword [esi + 0xdb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x5c1615
mov cx, word [esi + 0xdf0]
mov edx, dword [esi + 0xdb0]
push esi
push ecx
push edx
call fcn.005bdb30
add esp, 4
push eax
call fcn.005bde20
add esp, 0xc
test eax, eax
jne 0x5c0422
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0xdb0]
push eax
call fcn.005bfc00
add esp, 4
cmp eax, edi
jne 0x5c17b4
mov ecx, dword [esi + 0xdb0]
push esi
push ecx
call fcn.005bd120
add esp, 8
mov dword [esi + 0x19e], eax
jmp 0x5c04d8
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x58
ret
mov ecx, dword [esi + 0xdb0]
lea edx, [esp + 0x30]
push esi
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call fcn.005bf6c0
add esp, 0x10
test eax, eax
je 0x5c04a9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
or edx, eax
jne 0x5c04a9
mov eax, dword [esi + 0xdb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5c04c1
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x58
ret
mov ecx, dword [esi + 0xdb0]
push esi
push ecx
call fcn.005bffd0
add esp, 8
cmp eax, edi
jne 0x5c17b4
mov edx, dword [esi + 0xdb0]
push edx
call fcn.005bfc00
add esp, 4
cmp eax, edi
jne 0x5c17b4
mov eax, dword [esi + 0xdb0]
cmp eax, edi
je 0x5c17b2
cmp byte [eax], 0
je 0x5c17b2
push edi
push 0x8000080
push 3
push edi
push edi
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
je 0x5c17b2
cmp dword [esi + 0xd84], edi
je 0x5c0536
mov edx, dword [esi + 0xdb0]
lea eax, [esp + 0x30]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.005bf6c0
add esp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esi + 0xdc0], edi
mov ebp, 1
lea eax, [esp + 0x13]
push ebp
push eax
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c058e
cmp byte [esp + 0x13], 0x50
je 0x5c058e
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add edx, ebp
push ebp
adc ecx, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x17]
push ecx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
jne 0x5c0560
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x39]
push 3
push eax
push ebx
mov byte [esp + 0x44], dl
call fcn.005c02e0
mov ecx, dword [esp + 0x47]
mov edx, dword [esp + 0x46]
mov edi, dword [esp + 0x45]
add esp, 0xc
test eax, eax
je 0x5c0641
mov eax, ecx
mov ebp, edx
and eax, 0xff
and ebp, 0xff
shl eax, 8
or eax, ebp
mov ebp, edi
shl eax, 8
and ebp, 0xff
or eax, ebp
mov ebp, dword [esp + 0x38]
shl eax, 8
and ebp, 0xff
or eax, ebp
xor ebp, ebp
cmp eax, 0x4034b50
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
jne 0x5c05ff
test ebp, ebp
je 0x5c0641
cmp eax, 0x6054b50
jne 0x5c060a
test ebp, ebp
je 0x5c0641
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffd
push ebx
call fcn.005bfdc0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c16c0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ecx, 1
adc eax, 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
xor edi, edi
jmp 0x5c0548
mov eax, dword [esp + 0x28]
mov dword [esi + 0xdb4], eax
mov eax, ecx
and eax, 0xff
mov esi, edx
shl eax, 8
and esi, 0xff
or eax, esi
mov esi, edi
shl eax, 8
and esi, 0xff
or eax, esi
mov esi, dword [esp + 0x38]
shl eax, 8
and esi, 0xff
or eax, esi
cmp eax, 0x4034b50
jne 0x5c0efc
push 0x52
call fcn.005ce37a
mov esi, eax
add esp, 4
test esi, esi
je 0x5c167e
mov ecx, 0x14
xor eax, eax
mov edi, esi
push 0x1a
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
stosw word es:[edi], ax
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c0e43
mov ebp, dword [esp + 0x6c]
xor ecx, ecx
cmp dword [ebp + 0xd84], ecx
je 0x5c0895
xor edx, edx
mov dh, byte [esp + 0x39]
mov dl, byte [esp + 0x38]
mov word [esi + 2], dx
mov eax, dword [ebp + 0xd80]
neg eax
sbb eax, eax
and eax, 0xfffff500
add eax, 0xb14
mov word [esi], ax
xor eax, eax
movzx dx, byte [esp + 0x3a]
mov ah, byte [esp + 0x3b]
or eax, edx
mov word [esi + 0x2c], ax
mov word [esi + 4], ax
movzx dx, byte [esp + 0x3c]
mov dword [esp + 0x20], eax
xor eax, eax
mov ah, byte [esp + 0x3d]
or eax, edx
mov word [esi + 6], ax
mov eax, dword [esp + 0x41]
mov edx, dword [esp + 0x40]
and eax, 0xff
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x3f]
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x3e]
shl eax, 8
and edx, 0xff
or eax, edx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x45]
mov edx, dword [esp + 0x44]
and eax, 0xff
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x43]
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x42]
shl eax, 8
and edx, 0xff
or eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x49]
mov edx, dword [esp + 0x48]
and eax, 0xff
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x47]
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x46]
shl eax, 8
and edx, 0xff
or eax, edx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x4c]
and eax, 0xff
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x4b]
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x4a]
shl eax, 8
and edx, 0xff
or eax, edx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x4f]
mov edx, dword [esp + 0x4e]
and eax, 0xff
shl eax, 8
and edx, 0xff
or eax, edx
mov dword [esi + 0x18], eax
mov edx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [esp + 0x51]
and eax, 0xff
and edx, 0xff
shl eax, 8
or eax, edx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov word [esi + 0x28], cx
mov word [esi + 0x2a], cx
mov eax, dword [ebp + 0xd80]
mov dword [esp + 0x18], edi
cmp eax, ecx
mov eax, dword [esp + 0x14]
je 0x5c0863
and eax, 0xff
mov dword [esi + 0x2e], eax
mov word [esi + 0x4a], cx
mov word [esi + 0x4c], cx
mov eax, dword [ebp + 0xd84]
cmp eax, 1
jle 0x5c0888
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
jmp 0x5c0908
mov eax, dword [esi + 0x10]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
jmp 0x5c0908
mov edi, esi
lea ecx, [esp + 0x38]
lea eax, [esp + 0x38]
sub edi, ecx
mov ebp, 0x1a
mov dl, byte [eax]
mov byte [edi + eax], dl
inc eax
dec ebp
jne 0x5c08a6
xor eax, eax
xor ecx, ecx
mov ah, byte [esi + 0x19]
mov ch, byte [esi + 0x17]
mov al, byte [esi + 0x18]
mov cl, byte [esi + 0x16]
mov dword [esi + 0x1c], eax
xor edx, edx
movzx ax, byte [esp + 0x3a]
mov dh, byte [esp + 0x3b]
mov edi, ecx
xor ecx, ecx
or edx, eax
mov ch, byte [esi + 0x11]
mov dword [esp + 0x20], edx
mov cl, byte [esi + 0x10]
xor edx, edx
mov dl, byte [esi + 0xf]
mov ebp, dword [esp + 0x6c]
shl ecx, 8
or ecx, edx
xor eax, eax
mov al, byte [esi + 0xe]
mov dword [esp + 0x18], edi
shl ecx, 8
or ecx, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov edx, dword [esp + 0x1c]
lea eax, [esi + 0x4e]
cmp edi, ecx
mov dword [esp + 0x1c], eax
mov dword [edx], esi
mov dword [eax], ecx
je 0x5c0e69
lea eax, [edi + 1]
push eax
call fcn.005ce37a
add esp, 4
mov dword [esi + 0x46], eax
test eax, eax
je 0x5c167e
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5c0951
push eax
call fcn.005ce37a
add esp, 4
mov dword [esi + 0x3a], eax
test eax, eax
je 0x5c167e
mov ecx, dword [esi + 0x46]
push edi
mov byte [ecx], 0
mov edx, dword [esi + 0x46]
push edx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c16c0
mov eax, dword [esi + 0x46]
mov byte [edi + eax], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5c0991
mov ecx, dword [esi + 0x3a]
push eax
push ecx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c16c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, eax
or edx, ecx
je 0x5c09b7
push 1
push ecx
push eax
push ebx
call fcn.005bfdc0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c0e94
mov eax, dword [ebp + 0xd84]
test eax, eax
je 0x5c09c7
mov eax, dword [esi + 0x3a]
mov dword [esi + 0x3e], eax
mov eax, dword [esi + 0x46]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
mov ecx, dword [esi + 0x46]
push ebp
push ecx
call fcn.005bf080
add esp, 8
mov dword [esi + 0x36], eax
test eax, eax
je 0x5c167e
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
xor edi, edi
lea ecx, [edx + eax + 0x1e]
mov dword [esi + 0x32], ebp
mov eax, dword [esp + 0x30]
mov edx, ecx
mov ecx, dword [esp + 0x34]
add edx, eax
adc edi, ecx
add ebp, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ebp
adc edx, edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0xdc0]
inc edx
mov dword [edi + 0xdc0], edx
mov dl, byte [esp + 0x20]
test dl, 8
je 0x5c0cb6
or eax, ecx
jne 0x5c0b5d
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c0a71
cmp byte [esp + 0x13], 0x50
je 0x5c0a71
lea ecx, [esp + 0x13]
push 1
push ecx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
jne 0x5c0a56
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x39]
push 0xf
push eax
push ebx
mov byte [esp + 0x44], dl
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c0aea
mov ecx, dword [esp + 0x3b]
mov edx, dword [esp + 0x3a]
mov eax, dword [esp + 0x39]
and ecx, 0xff
shl ecx, 8
and edx, 0xff
and eax, 0xff
or ecx, edx
mov edx, dword [esp + 0x38]
shl ecx, 8
or ecx, eax
and edx, 0xff
shl ecx, 8
or ecx, edx
cmp ecx, 0x8074b50
je 0x5c0aea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff1
push ebx
call fcn.005bfdc0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c0e94
jmp 0x5c0a42
mov eax, dword [esp + 0x43]
mov ecx, dword [esp + 0x42]
mov edx, dword [esp + 0x41]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
or eax, ecx
mov ecx, dword [esp + 0x40]
shl eax, 8
mov edi, dword [esp + 0x2c]
or eax, edx
shl eax, 8
and ecx, 0xff
push 1
or eax, ecx
xor ecx, ecx
add ebp, eax
push ecx
adc edi, ecx
push ecx
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edi
call fcn.005bfdc0
mov ecx, ebp
add esp, 0x10
add ecx, 0x10
adc edi, 0
cmp eax, ecx
jne 0x5c0ea8
cmp edx, edi
jne 0x5c0ea8
jmp 0x5c0bd3
mov edx, dword [esp + 0x2c]
push 0
push edx
push ebp
push ebx
call fcn.005bfdc0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c16c0
lea eax, [esp + 0x38]
push 0x10
push eax
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c16c0
mov ecx, dword [esp + 0x3b]
mov edx, dword [esp + 0x3a]
mov eax, dword [esp + 0x39]
and ecx, 0xff
shl ecx, 8
and edx, 0xff
and eax, 0xff
or ecx, edx
mov edx, dword [esp + 0x38]
shl ecx, 8
or ecx, eax
and edx, 0xff
shl ecx, 8
or ecx, edx
cmp ecx, 0x8074b50
jne 0x5c0ebd
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xd84]
test ecx, ecx
je 0x5c0c5c
mov ecx, dword [esp + 0x3f]
mov edx, dword [esp + 0x3e]
mov eax, dword [esp + 0x3d]
and ecx, 0xff
shl ecx, 8
and edx, 0xff
and eax, 0xff
or ecx, edx
mov edx, dword [esp + 0x3c]
shl ecx, 8
or ecx, eax
and edx, 0xff
shl ecx, 8
or ecx, edx
mov dword [esi + 0xc], ecx
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x47]
mov edx, dword [esp + 0x46]
mov eax, dword [esp + 0x45]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x44]
shl ecx, 8
and eax, 0xff
and edx, 0xff
or ecx, eax
shl ecx, 8
or ecx, edx
mov dword [esi + 0x14], ecx
jmp 0x5c0c77
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x3c]
sub esi, ecx
mov edi, 0xc
add esi, 0xa
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x5c0c6e
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x6c]
add ebp, 0x10
adc eax, 0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x38]
push 4
push ecx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c0ed2
mov ecx, dword [esp + 0x3b]
mov edx, dword [esp + 0x3a]
mov edi, dword [esp + 0x39]
jmp 0x5c0e03
cmp dword [edi + 0xd84], 1
jle 0x5c0c8d
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c0d00
cmp byte [esp + 0x13], 0x50
je 0x5c0d00
mov edx, dword [esp + 0x2c]
add ebp, 1
lea ecx, [esp + 0x13]
push 1
adc edx, 0
push ecx
push ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edx
call fcn.005c02e0
add esp, 0xc
test eax, eax
jne 0x5c0cd3
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x39]
push 3
push eax
push ebx
mov byte [esp + 0x44], dl
call fcn.005c02e0
mov ecx, dword [esp + 0x47]
mov edx, dword [esp + 0x46]
mov edi, dword [esp + 0x45]
add esp, 0xc
test eax, eax
je 0x5c0db5
mov eax, ecx
mov ebp, edx
and eax, 0xff
and ebp, 0xff
shl eax, 8
or eax, ebp
mov ebp, edi
shl eax, 8
and ebp, 0xff
or eax, ebp
mov ebp, dword [esp + 0x38]
shl eax, 8
and ebp, 0xff
or eax, ebp
xor ebp, ebp
cmp eax, 0x4034b50
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
jne 0x5c0d71
test ebp, ebp
je 0x5c0db1
cmp eax, 0x2014b50
jne 0x5c0d7c
test ebp, ebp
je 0x5c0db1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffd
push ebx
call fcn.005bfdc0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c16c0
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ebp, 1
adc eax, 0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
jmp 0x5c0cbf
mov ebp, dword [esp + 0x28]
mov eax, dword [esi + 0x32]
mov ebx, dword [esi + 0x1c]
add eax, ebx
mov ebx, dword [esp + 0x18]
lea eax, [eax + ebx + 0x1e]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x20], eax
mov eax, ebp
mov ebp, dword [esp + 0x20]
sub eax, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
sbb ebx, ebp
mov dword [esp + 0x34], ebx
mov ebp, dword [esi + 0x10]
cmp eax, ebp
jne 0x5c0df0
xor ebp, ebp
cmp ebx, ebp
je 0x5c0dff
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x3b]
mov edx, dword [esp + 0x3a]
mov edi, dword [esp + 0x39]
mov ebx, dword [esp + 0x24]
mov eax, ecx
mov esi, edx
and eax, 0xff
and esi, 0xff
shl eax, 8
or eax, esi
mov esi, edi
shl eax, 8
and esi, 0xff
or eax, esi
mov esi, dword [esp + 0x38]
shl eax, 8
and esi, 0xff
or eax, esi
cmp eax, 0x4034b50
je 0x5c0686
jmp 0x5c0efc
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0xd84]
test eax, eax
jne 0x5c0ef0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x58
ret
mov edx, dword [ebp + 0xdc0]
lea esi, [ebp + 0xb68]
inc edx
push edx
push 0x672660
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
push esi
push 0
push 0x131
jmp 0x5c15fd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [esi + 0x46]
push eax
push ecx
push 0
push 0x132
jmp 0x5c15fd
mov edx, dword [esp + 0x6c]
mov eax, dword [esi + 0x46]
push edx
push eax
push 0
push 0x134
jmp 0x5c15fd
mov eax, dword [edi + 0xd84]
test eax, eax
jne 0x5c0ef0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x58
ret
mov ecx, dword [esp + 0x3b]
mov edx, dword [esp + 0x3a]
mov edi, dword [esp + 0x39]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esi + 0xdbc]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xd84]
test eax, eax
jne 0x5c1631
mov eax, ecx
mov esi, edx
and eax, 0xff
and esi, 0xff
shl eax, 8
or eax, esi
mov esi, edi
shl eax, 8
and esi, 0xff
or eax, esi
mov esi, dword [esp + 0x38]
shl eax, 8
and esi, 0xff
or eax, esi
cmp eax, 0x2014b50
jne 0x5c1357
test ebp, ebp
je 0x5c13d3
lea ecx, [esp + 0x38]
push 0x2a
push ecx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c16c0
mov al, byte [ebp + 3]
xor edx, edx
mov dh, al
and al, 0x1f
mov dl, byte [ebp + 2]
mov edi, ebp
mov word [ebp + 0x2c], dx
mov dl, byte [esp + 0x3d]
mov byte [ebp + 3], al
mov al, byte [esp + 0x3d]
and al, 0x1f
xor esi, esi
mov byte [esp + 0x3d], al
lea eax, [esp + 0x3a]
mov byte [esp + 0x13], 0
sub edi, eax
lea eax, [esp + esi + 0x3a]
mov cl, byte [edi + eax]
cmp cl, byte [eax]
je 0x5c0fbc
mov byte [eax], cl
inc esi
cmp esi, 0x18
jb 0x5c0faf
xor ecx, ecx
mov byte [esp + 0x3d], dl
mov ch, byte [esp + 0x39]
xor edx, edx
mov cl, byte [esp + 0x38]
mov word [ebp], cx
mov dh, byte [esp + 0x3b]
movzx ax, byte [esp + 0x3a]
or edx, eax
xor ecx, ecx
mov word [ebp + 2], dx
mov ch, byte [esp + 0x3d]
movzx dx, byte [esp + 0x3c]
or ecx, edx
xor eax, eax
mov word [ebp + 4], cx
mov ah, byte [esp + 0x3f]
movzx cx, byte [esp + 0x3e]
or eax, ecx
mov word [ebp + 6], ax
mov edx, dword [esp + 0x43]
mov eax, dword [esp + 0x42]
mov ecx, dword [esp + 0x41]
and edx, 0xff
and eax, 0xff
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x40]
shl edx, 8
and ecx, 0xff
and eax, 0xff
or edx, ecx
shl edx, 8
or edx, eax
mov dword [ebp + 8], edx
mov ecx, dword [esp + 0x47]
mov edx, dword [esp + 0x46]
mov eax, dword [esp + 0x45]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x44]
shl ecx, 8
and eax, 0xff
and edx, 0xff
or ecx, eax
shl ecx, 8
or ecx, edx
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0x4b]
mov ecx, dword [esp + 0x4a]
mov edx, dword [esp + 0x49]
and eax, 0xff
and ecx, 0xff
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x48]
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
shl eax, 8
or eax, ecx
mov dword [ebp + 0x10], eax
mov edx, dword [esp + 0x4f]
mov eax, dword [esp + 0x4e]
mov ecx, dword [esp + 0x4d]
and edx, 0xff
and eax, 0xff
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x4c]
shl edx, 8
and ecx, 0xff
and eax, 0xff
or edx, ecx
shl edx, 8
or edx, eax
mov dword [ebp + 0x14], edx
mov ecx, dword [esp + 0x51]
mov edx, dword [esp + 0x50]
and ecx, 0xff
shl ecx, 8
and edx, 0xff
or ecx, edx
mov dword [ebp + 0x18], ecx
mov eax, dword [esp + 0x53]
mov ecx, dword [esp + 0x52]
and eax, 0xff
shl eax, 8
and ecx, 0xff
or eax, ecx
xor ecx, ecx
mov dword [ebp + 0x20], eax
mov edx, dword [esp + 0x55]
mov eax, dword [esp + 0x54]
and edx, 0xff
shl edx, 8
and eax, 0xff
or edx, eax
xor eax, eax
mov dword [ebp + 0x24], edx
mov ch, byte [esp + 0x57]
movzx dx, byte [esp + 0x56]
or ecx, edx
mov word [ebp + 0x28], cx
mov ah, byte [esp + 0x59]
movzx cx, byte [esp + 0x58]
or eax, ecx
mov word [ebp + 0x2a], ax
mov edx, dword [esp + 0x5d]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x5b]
and edx, 0xff
and eax, 0xff
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x5a]
shl edx, 8
and ecx, 0xff
and eax, 0xff
or edx, ecx
shl edx, 8
or edx, eax
mov dword [ebp + 0x2e], edx
mov ecx, dword [esp + 0x61]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5f]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x5e]
shl ecx, 8
and eax, 0xff
and edx, 0xff
or ecx, eax
mov eax, dword [ebp + 0x32]
shl ecx, 8
or ecx, edx
cmp eax, ecx
jne 0x5c13e9
mov eax, dword [ebp + 0x18]
push eax
call fcn.005ce37a
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x5c167e
mov ecx, dword [ebp + 0x18]
push ecx
push esi
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c13fe
mov edx, dword [ebp + 0x18]
push edx
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharBuffA]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x46]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov ecx, dword [esp + 0x18]
push ecx
jne 0x5c141b
call fcn.005ce291
mov eax, dword [ebp + 0x20]
add esp, 4
test eax, eax
je 0x5c1292
mov edx, eax
push edx
call fcn.005ce37a
add esp, 4
mov dword [ebp + 0x3e], eax
test eax, eax
je 0x5c167e
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x3e]
push eax
push ecx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c1438
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
cmp ecx, eax
jne 0x5c1292
mov edi, dword [ebp + 0x3e]
mov esi, dword [ebp + 0x3a]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x5c1292
mov eax, dword [ebp + 0x3e]
push eax
call fcn.005ce291
mov ecx, dword [ebp + 0x3a]
add esp, 4
mov dword [ebp + 0x3e], ecx
mov eax, dword [ebp + 0x24]
xor esi, esi
cmp eax, esi
je 0x5c12ca
mov edx, eax
push edx
call fcn.005ce37a
add esp, 4
cmp eax, esi
mov dword [ebp + 0x42], eax
je 0x5c167e
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x42]
push eax
push ecx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c1458
mov edx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x18]
add edx, edi
push 4
mov word [ebp + 0x4a], si
lea ecx, [edx + eax + 0x2e]
mov edx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x3c]
adc ecx, esi
push edx
mov word [ebp + 0x4c], si
mov ebp, dword [ebp + 0x4e]
push ebx
mov dword [esp + 0x38], ecx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c16c0
mov ecx, dword [esp + 0x3b]
mov edx, dword [esp + 0x3a]
mov edi, dword [esp + 0x39]
mov eax, ecx
and eax, 0xff
mov esi, edx
shl eax, 8
and esi, 0xff
or eax, esi
mov esi, edi
shl eax, 8
and esi, 0xff
or eax, esi
mov esi, dword [esp + 0x38]
shl eax, 8
and esi, 0xff
or eax, esi
cmp eax, 0x2014b50
je 0x5c0f5f
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0xd84]
test eax, eax
jne 0x5c1631
test ebp, ebp
jne 0x5c1622
and ecx, 0xff
mov eax, dword [esp + 0x38]
shl ecx, 8
and edx, 0xff
and edi, 0xff
or ecx, edx
and eax, 0xff
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x5c1622
lea eax, [esp + 0x38]
push 0x12
push eax
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
jne 0x5c1478
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x58
ret
mov ecx, dword [esp + 0x6c]
push ecx
push 0x6a0f60
push 0
push 0x135
jmp 0x5c15fd
mov edx, dword [esp + 0x6c]
mov eax, dword [ebp + 0x46]
push edx
push eax
push 0
push 0x136
jmp 0x5c15fd
push esi
call fcn.005ce291
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x58
ret
call fcn.005ce291
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 0x46]
add esp, 4
push edx
push eax
push 0
push 0x137
jmp 0x5c15fd
mov ecx, dword [ebp + 0x3e]
push ecx
call fcn.005ce291
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x58
ret
mov edx, dword [ebp + 0x42]
push edx
call fcn.005ce291
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x58
ret
mov ecx, dword [esp + 0x39]
mov edx, dword [esp + 0x38]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
or ecx, edx
jne 0x5c14e6
mov eax, dword [esp + 0x3b]
mov ecx, dword [esp + 0x3a]
and eax, 0xff
and ecx, 0xff
shl eax, 8
or eax, ecx
jne 0x5c14e6
mov edx, dword [esp + 0x3f]
mov eax, dword [esp + 0x3e]
mov ecx, dword [esp + 0x3c]
and edx, 0xff
shl edx, 8
and eax, 0xff
mov ebp, ecx
or edx, eax
mov eax, dword [esp + 0x3d]
mov edi, eax
and ebp, 0xff
and edi, 0xff
shl edi, 8
or edi, ebp
cmp edi, edx
je 0x5c150c
push esi
push 0x6a0f60
push 0
push 0x143
call fcn.005be950
add esp, 8
push eax
call fcn.005ba1c0
mov eax, dword [esp + 0x49]
mov ecx, dword [esp + 0x48]
add esp, 0xc
and eax, 0xff
and ecx, 0xff
shl eax, 8
or eax, ecx
mov ecx, dword [esi + 0xdc0]
cmp ecx, eax
je 0x5c1538
push esi
push 0x6a0f60
push 0
push 0x144
jmp 0x5c15fd
mov eax, dword [esp + 0x43]
mov ecx, dword [esp + 0x42]
mov edx, dword [esp + 0x41]
and eax, 0xff
shl eax, 8
and ecx, 0xff
mov ebp, dword [esp + 0x30]
or eax, ecx
mov ecx, dword [esp + 0x40]
shl eax, 8
and edx, 0xff
mov edi, dword [esp + 0x34]
or eax, edx
mov edx, dword [esp + 0x2c]
shl eax, 8
and ecx, 0xff
or eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, ebp
sbb edx, edi
xor edi, edi
cmp eax, ecx
jne 0x5c158c
cmp edi, edx
je 0x5c15aa
push esi
push 0x6a0f60
push 0
push 0x145
call fcn.005be950
add esp, 8
push eax
call fcn.005ba1c0
add esp, 0xc
mov eax, dword [esp + 0x47]
mov edx, dword [esp + 0x46]
mov ecx, dword [esp + 0x45]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
mov edx, dword [esp + 0x44]
shl eax, 8
or eax, ecx
and edx, 0xff
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x30]
xor ecx, ecx
cmp eax, edx
jne 0x5c15f0
cmp ecx, dword [esp + 0x34]
je 0x5c1631
push esi
push 0x6a0f60
push 0
push 0x146
call fcn.005be950
add esp, 8
push eax
call fcn.005ba1c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x58
ret
push esi
push 0x6a0f60
push 0
push 0x142
jmp 0x5c15fd
mov eax, dword [esp + 0x30]
mov dword [esi + 0xdb8], eax
mov eax, dword [esi + 0xd84]
test eax, eax
je 0x5c1649
xor eax, eax
jmp 0x5c1661
mov eax, dword [esp + 0x49]
mov ecx, dword [esp + 0x48]
and eax, 0xff
and ecx, 0xff
shl eax, 8
or eax, ecx
test eax, eax
mov dword [esi + 0xdc4], eax
je 0x5c16d4
push eax
call fcn.005ce37a
add esp, 4
mov dword [esi + 0xdc8], eax
test eax, eax
jne 0x5c1692
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x58
ret
mov edx, dword [esi + 0xdc4]
push edx
push eax
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
jne 0x5c16d4
mov eax, dword [esi + 0xdc8]
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0xdc8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0xdb4]
test eax, eax
je 0x5c170d
push eax
push 0
push 0x147
lea edi, [esi + 0xb68]
call fcn.005be950
add esp, 8
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0xdb0]
push esi
push edi
push ecx
call fcn.005ba1c0
add esp, 0x18
mov eax, dword [esi + 0xd84]
test eax, eax
jne 0x5c1749
lea edx, [esp + 0x13]
push 1
push edx
push ebx
call fcn.005c02e0
add esp, 0xc
test eax, eax
je 0x5c1749
push esi
push 0x6a0f60
push 0
push 0x148
call fcn.005be950
add esp, 8
push eax
call fcn.005ba1c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xdc0]
test eax, eax
je 0x5c17b2
shl eax, 2
push eax
call fcn.005ce37a
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esi + 0xdcc], eax
jne 0x5c177f
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0xdbc]
test eax, eax
je 0x5c1795
mov dword [ecx], eax
mov eax, dword [eax + 0x4e]
add ecx, 4
test eax, eax
jne 0x5c1789
mov ecx, dword [esi + 0xdc0]
mov edx, dword [esi + 0xdcc]
push 0x5bfed0
push 4
push ecx
push edx
call fcn.005d1503
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret