Function at 0x56ed60
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 0x56eea1
push esi
push 0x638420
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.0056ce30
add esp, 0x18
cmp eax, 1
jne 0x56ee94
test byte [esi + 0xdf0], 1
jne 0x56ee26
mov edx, dword [esi + 0xdb0]
lea eax, [esp + 0x30]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.0056e120
add esp, 0x10
test eax, eax
je 0x56ee26
mov eax, dword [esi + 0xdb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x570055
mov cx, word [esi + 0xdf0]
mov edx, dword [esi + 0xdb0]
push esi
push ecx
push edx
call fcn.0056c680
add esp, 4
push eax
call fcn.0056c970
add esp, 0xc
test eax, eax
jne 0x56ee62
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.0056e660
add esp, 4
cmp eax, edi
jne 0x5701f4
mov ecx, dword [esi + 0xdb0]
push esi
push ecx
call fcn.0056bc70
add esp, 8
mov dword [esi + 0x19e], eax
jmp 0x56ef18
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.0056e120
add esp, 0x10
test eax, eax
je 0x56eee9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
or edx, eax
jne 0x56eee9
mov eax, dword [esi + 0xdb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x56ef01
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.0056ea10
add esp, 8
cmp eax, edi
jne 0x5701f4
mov edx, dword [esi + 0xdb0]
push edx
call fcn.0056e660
add esp, 4
cmp eax, edi
jne 0x5701f4
mov eax, dword [esi + 0xdb0]
cmp eax, edi
je 0x5701f2
cmp byte [eax], 0
je 0x5701f2
push edi
push 0x8000080
push 3
push edi
push edi
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
je 0x5701f2
cmp dword [esi + 0xd84], edi
je 0x56ef76
mov edx, dword [esi + 0xdb0]
lea eax, [esp + 0x30]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.0056e120
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.0056ed20
add esp, 0xc
test eax, eax
je 0x56efce
cmp byte [esp + 0x13], 0x50
je 0x56efce
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.0056ed20
add esp, 0xc
test eax, eax
jne 0x56efa0
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x39]
push 3
push eax
push ebx
mov byte [esp + 0x44], dl
call fcn.0056ed20
mov ecx, dword [esp + 0x47]
mov edx, dword [esp + 0x46]
mov edi, dword [esp + 0x45]
add esp, 0xc
test eax, eax
je 0x56f081
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 0x56f03f
test ebp, ebp
je 0x56f081
cmp eax, 0x6054b50
jne 0x56f04a
test ebp, ebp
je 0x56f081
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffd
push ebx
call fcn.00560c50
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x570100
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 0x56ef88
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 0x56f93c
push 0x52
call fcn.0057ca98
mov esi, eax
add esp, 4
test esi, esi
je 0x5700be
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.0056ed20
add esp, 0xc
test eax, eax
je 0x56f883
mov ebp, dword [esp + 0x6c]
xor ecx, ecx
cmp dword [ebp + 0xd84], ecx
je 0x56f2d5
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 0x56f2a3
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 0x56f2c8
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
jmp 0x56f348
mov eax, dword [esi + 0x10]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
jmp 0x56f348
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 0x56f2e6
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 0x56f8a9
lea eax, [edi + 1]
push eax
call fcn.0057ca98
add esp, 4
mov dword [esi + 0x46], eax
test eax, eax
je 0x5700be
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x56f391
push eax
call fcn.0057ca98
add esp, 4
mov dword [esi + 0x3a], eax
test eax, eax
je 0x5700be
mov ecx, dword [esi + 0x46]
push edi
mov byte [ecx], 0
mov edx, dword [esi + 0x46]
push edx
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x570100
mov eax, dword [esi + 0x46]
mov byte [edi + eax], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x56f3d1
mov ecx, dword [esi + 0x3a]
push eax
push ecx
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x570100
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, eax
or edx, ecx
je 0x56f3f7
push 1
push ecx
push eax
push ebx
call fcn.00560c50
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x56f8d4
mov eax, dword [ebp + 0xd84]
test eax, eax
je 0x56f407
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.0056dae0
add esp, 8
mov dword [esi + 0x36], eax
test eax, eax
je 0x5700be
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 0x56f6f6
or eax, ecx
jne 0x56f59d
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x56f4b1
cmp byte [esp + 0x13], 0x50
je 0x56f4b1
lea ecx, [esp + 0x13]
push 1
push ecx
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
jne 0x56f496
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x39]
push 0xf
push eax
push ebx
mov byte [esp + 0x44], dl
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x56f52a
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 0x56f52a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff1
push ebx
call fcn.00560c50
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x56f8d4
jmp 0x56f482
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.00560c50
mov ecx, ebp
add esp, 0x10
add ecx, 0x10
adc edi, 0
cmp eax, ecx
jne 0x56f8e8
cmp edx, edi
jne 0x56f8e8
jmp 0x56f613
mov edx, dword [esp + 0x2c]
push 0
push edx
push ebp
push ebx
call fcn.00560c50
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x570100
lea eax, [esp + 0x38]
push 0x10
push eax
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x570100
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 0x56f8fd
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xd84]
test ecx, ecx
je 0x56f69c
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 0x56f6b7
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 0x56f6ae
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.0056ed20
add esp, 0xc
test eax, eax
je 0x56f912
mov ecx, dword [esp + 0x3b]
mov edx, dword [esp + 0x3a]
mov edi, dword [esp + 0x39]
jmp 0x56f843
cmp dword [edi + 0xd84], 1
jle 0x56f6cd
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x56f740
cmp byte [esp + 0x13], 0x50
je 0x56f740
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.0056ed20
add esp, 0xc
test eax, eax
jne 0x56f713
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x39]
push 3
push eax
push ebx
mov byte [esp + 0x44], dl
call fcn.0056ed20
mov ecx, dword [esp + 0x47]
mov edx, dword [esp + 0x46]
mov edi, dword [esp + 0x45]
add esp, 0xc
test eax, eax
je 0x56f7f5
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 0x56f7b1
test ebp, ebp
je 0x56f7f1
cmp eax, 0x2014b50
jne 0x56f7bc
test ebp, ebp
je 0x56f7f1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffd
push ebx
call fcn.00560c50
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x570100
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 0x56f6ff
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 0x56f830
xor ebp, ebp
cmp ebx, ebp
je 0x56f83f
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 0x56f0c6
jmp 0x56f93c
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0xd84]
test eax, eax
jne 0x56f930
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 0x60c620
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
push esi
push 0
push 0x131
jmp 0x57003d
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 0x57003d
mov edx, dword [esp + 0x6c]
mov eax, dword [esi + 0x46]
push edx
push eax
push 0
push 0x134
jmp 0x57003d
mov eax, dword [edi + 0xd84]
test eax, eax
jne 0x56f930
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 0x570071
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 0x56fd97
test ebp, ebp
je 0x56fe13
lea ecx, [esp + 0x38]
push 0x2a
push ecx
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x570100
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 0x56f9fc
mov byte [eax], cl
inc esi
cmp esi, 0x18
jb 0x56f9ef
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 0x56fe29
mov eax, dword [ebp + 0x18]
push eax
call fcn.0057ca98
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x5700be
mov ecx, dword [ebp + 0x18]
push ecx
push esi
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x56fe3e
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 0x56fe5b
call fcn.0057c9af
mov eax, dword [ebp + 0x20]
add esp, 4
test eax, eax
je 0x56fcd2
mov edx, eax
push edx
call fcn.0057ca98
add esp, 4
mov dword [ebp + 0x3e], eax
test eax, eax
je 0x5700be
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x3e]
push eax
push ecx
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x56fe78
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
cmp ecx, eax
jne 0x56fcd2
mov edi, dword [ebp + 0x3e]
mov esi, dword [ebp + 0x3a]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x56fcd2
mov eax, dword [ebp + 0x3e]
push eax
call fcn.0057c9af
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 0x56fd0a
mov edx, eax
push edx
call fcn.0057ca98
add esp, 4
cmp eax, esi
mov dword [ebp + 0x42], eax
je 0x5700be
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x42]
push eax
push ecx
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x56fe98
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.0056ed20
add esp, 0xc
test eax, eax
je 0x570100
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 0x56f99f
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0xd84]
test eax, eax
jne 0x570071
test ebp, ebp
jne 0x570062
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 0x570062
lea eax, [esp + 0x38]
push 0x12
push eax
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
jne 0x56feb8
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 0x638420
push 0
push 0x135
jmp 0x57003d
mov edx, dword [esp + 0x6c]
mov eax, dword [ebp + 0x46]
push edx
push eax
push 0
push 0x136
jmp 0x57003d
push esi
call fcn.0057c9af
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.0057c9af
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 0x46]
add esp, 4
push edx
push eax
push 0
push 0x137
jmp 0x57003d
mov ecx, dword [ebp + 0x3e]
push ecx
call fcn.0057c9af
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.0057c9af
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 0x56ff26
mov eax, dword [esp + 0x3b]
mov ecx, dword [esp + 0x3a]
and eax, 0xff
and ecx, 0xff
shl eax, 8
or eax, ecx
jne 0x56ff26
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 0x56ff4c
push esi
push 0x638420
push 0
push 0x143
call fcn.0056d4a0
add esp, 8
push eax
call fcn.00568d10
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 0x56ff78
push esi
push 0x638420
push 0
push 0x144
jmp 0x57003d
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 0x56ffcc
cmp edi, edx
je 0x56ffea
push esi
push 0x638420
push 0
push 0x145
call fcn.0056d4a0
add esp, 8
push eax
call fcn.00568d10
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 0x570030
cmp ecx, dword [esp + 0x34]
je 0x570071
push esi
push 0x638420
push 0
push 0x146
call fcn.0056d4a0
add esp, 8
push eax
call fcn.00568d10
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 0x638420
push 0
push 0x142
jmp 0x57003d
mov eax, dword [esp + 0x30]
mov dword [esi + 0xdb8], eax
mov eax, dword [esi + 0xd84]
test eax, eax
je 0x570089
xor eax, eax
jmp 0x5700a1
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 0x570114
push eax
call fcn.0057ca98
add esp, 4
mov dword [esi + 0xdc8], eax
test eax, eax
jne 0x5700d2
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.0056ed20
add esp, 0xc
test eax, eax
jne 0x570114
mov eax, dword [esi + 0xdc8]
push eax
call fcn.0057c9af
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 0x57014d
push eax
push 0
push 0x147
lea edi, [esi + 0xb68]
call fcn.0056d4a0
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.00568d10
add esp, 0x18
mov eax, dword [esi + 0xd84]
test eax, eax
jne 0x570189
lea edx, [esp + 0x13]
push 1
push edx
push ebx
call fcn.0056ed20
add esp, 0xc
test eax, eax
je 0x570189
push esi
push 0x638420
push 0
push 0x148
call fcn.0056d4a0
add esp, 8
push eax
call fcn.00568d10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xdc0]
test eax, eax
je 0x5701f2
shl eax, 2
push eax
call fcn.0057ca98
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esi + 0xdcc], eax
jne 0x5701bf
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0xdbc]
test eax, eax
je 0x5701d5
mov dword [ecx], eax
mov eax, dword [eax + 0x4e]
add ecx, 4
test eax, eax
jne 0x5701c9
mov ecx, dword [esi + 0xdc0]
mov edx, dword [esi + 0xdcc]
push 0x56e910
push 4
push ecx
push edx
call fcn.0057f7af
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret