Function at 0x5ddb40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x653d88
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ebp, [esi + 8]
mov ecx, ebp
call fcn.005dd160
test eax, eax
jne 0x5ddb7b
mov eax, 0xfffffffe
jmp 0x5de119
mov edx, dword [esp + 0x40]
lea ecx, [esi + 0xc0]
lea ebx, [esi + 0x80]
mov dword [esi + 0x54], ecx
push edx
mov ecx, ebx
mov dword [esi + 0x10], 1
call fcn.005dd160
test eax, eax
jne 0x5ddbab
mov eax, 0xfffffffd
jmp 0x5de119
mov eax, dword [esi + 0xe0]
mov edx, dword [esi + 0x68]
add eax, edx
xor edi, edi
push eax
mov dword [esp + 0x14], 0x66460c
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.0060a459
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x5ddbe5
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], edi
cmp edx, edi
je 0x5ddc4b
cmp eax, edi
mov dword [esp + 0x10], 0x66460c
je 0x5ddc41
cmp ecx, edi
je 0x5ddc38
lea edx, [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5ddc34
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5ddc34
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
push eax
call fcn.00609aba
add esp, 4
mov eax, 0xfffffffb
jmp 0x5de119
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
mov dword [esi + 0x44], ecx
mov ecx, ebx
mov dword [esi + 0xbc], edx
call fcn.005dd890
test eax, eax
jne 0x5ddcc1
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x66460c
cmp ecx, edi
je 0x5ddcb7
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x5ddcaa
lea edx, [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5ddcaa
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5ddcaa
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00609aba
add esp, 4
mov eax, 0xfffffff9
jmp 0x5de119
mov ecx, ebp
call fcn.005dd890
test eax, eax
jne 0x5ddd26
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x66460c
cmp ecx, edi
je 0x5ddd1c
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x5ddd0f
lea edx, [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5ddd0f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5ddd0f
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00609aba
add esp, 4
mov eax, 0xfffffff8
jmp 0x5de119
mov ecx, ebx
call fcn.005dd210
mov ecx, ebp
call fcn.005dd210
mov ecx, dword [esi + 0x9c]
mov eax, 0x400
cmp ecx, edi
jg 0x5de0c4
jl 0x5ddd55
cmp dword [esi + 0x98], eax
ja 0x5de0c4
cmp dword [esi + 0x24], edi
jg 0x5de0c4
jl 0x5ddd69
cmp dword [esi + 0x20], eax
ja 0x5de0c4
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd8]
xor edi, edi
cmp eax, ecx
jae 0x5dddde
lea edx, [eax + 0xbc]
cmp edx, ecx
ja 0x5ddd90
mov ecx, ebx
call fcn.005dd4d0
mov edi, eax
jmp 0x5dddc4
add eax, 0xbb
cmp eax, ecx
jb 0x5dddc4
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x90]
cmp eax, ecx
jne 0x5dddb9
mov ecx, dword [esi + 0x9c]
mov eax, dword [esi + 0x94]
cmp ecx, eax
je 0x5dddd9
mov ecx, ebx
call fcn.005dd890
test eax, eax
je 0x5dddd9
cmp edi, 1
je 0x5dde38
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd8]
cmp eax, ecx
jb 0x5ddd7b
cmp edi, 1
je 0x5dde45
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x66460c
test ecx, ecx
je 0x5de114
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5de107
xor esi, esi
lea edx, [esp + 0x3c]
push esi
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5de107
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5de107
mov dword [esp + 0x18], esi
jmp 0x5de107
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x5dde45
mov dword [esi + 0x3c], eax
mov edi, 1
mov eax, edi
dec eax
je 0x5ddf03
dec eax
jne 0x5ddf9d
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
xor eax, eax
cmp ecx, edx
jae 0x5ddeb9
add ecx, 0xbc
cmp ecx, edx
ja 0x5dde77
mov ecx, ebx
call fcn.005dd4d0
cmp eax, 5
je 0x5dde8b
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
cmp ecx, edx
jb 0x5dde66
cmp eax, 5
jne 0x5ddeb9
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0xd4]
cmp edx, eax
ja 0x5ddf9d
jb 0x5ddeaf
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0xd0]
cmp eax, ecx
ja 0x5ddf9d
mov edi, 1
jmp 0x5ddf9d
mov ecx, dword [esi + 0xdc]
mov eax, dword [esi + 0xd8]
cmp ecx, eax
jb 0x5ddf9d
mov edx, dword [esi + 0x98]
mov eax, dword [esi + 0x90]
cmp edx, eax
jne 0x5ddef7
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
cmp eax, ecx
jne 0x5ddef7
mov edi, 1
jmp 0x5ddf9d
mov ecx, ebx
call fcn.005dd890
jmp 0x5ddf9d
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x58]
xor eax, eax
cmp ecx, edx
jae 0x5ddf2f
add ecx, 0xbc
cmp ecx, edx
ja 0x5ddf20
mov ecx, ebp
call fcn.005dd4d0
cmp eax, 5
je 0x5ddf2f
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x58]
cmp ecx, edx
jb 0x5ddf0f
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x5ddf49
mov cl, byte [esi + 0x40]
mov dword [esi + 0xac], 1
mov byte [esi + 0xb8], cl
cmp eax, 5
jne 0x5ddf71
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0xd4]
cmp edx, eax
jb 0x5ddf9d
ja 0x5ddf6a
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0xd0]
cmp eax, ecx
jbe 0x5ddf9d
mov edi, 2
jmp 0x5ddf9d
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
cmp ecx, eax
jb 0x5ddf9d
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp edx, eax
jne 0x5ddf96
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jne 0x5ddf96
mov edi, 2
jmp 0x5ddf9d
mov ecx, ebp
call fcn.005dd890
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp ecx, eax
jne 0x5dde4a
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
cmp edx, eax
jne 0x5dde4a
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x90]
cmp eax, ecx
jne 0x5dde4a
mov ecx, dword [esi + 0x9c]
mov eax, dword [esi + 0x94]
cmp ecx, eax
jne 0x5dde4a
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5de073
mov ecx, dword [esp + 0x18]
xor edi, edi
lea edx, [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x50], edi
call esi
test eax, eax
je 0x5de06f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5de06f
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x10], 0x66460c
je 0x5de068
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x5de05b
lea edx, [esp + 0x3c]
push edi
push edx
push edi
push ecx
push eax
mov dword [esp + 0x50], edi
call esi
test eax, eax
je 0x5de05b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5de05b
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00609aba
add esp, 4
xor eax, eax
jmp 0x5de119
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x66460c
test ecx, ecx
je 0x5de0bd
test eax, eax
je 0x5de0b0
xor edi, edi
lea edx, [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], edi
push edx
push ecx
push eax
call esi
test eax, eax
je 0x5de0b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5de0b0
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00609aba
add esp, 4
mov eax, 0xffffffdd
jmp 0x5de119
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x66460c
cmp ecx, edi
je 0x5de114
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x5de107
lea edx, [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5de107
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x5de107
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00609aba
add esp, 4
mov eax, 0xfffffff7
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc