Function at 0x10053590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085d18
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100934c8]
xor eax, ebp
mov dword [ebp - 0x58], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp + 8]
call fcn.10048b10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x6c], 2
ja 0x100535e1
mov eax, 0x80004005
jmp 0x10053df5
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp + 8]
call fcn.10041b00
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jge 0x10053611
mov eax, dword [ebp - 0xb0]
jmp 0x10053df5
mov esi, dword [ebp - 0x2c]
add esi, 0x10
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x1005362d
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0xc]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xe]
add edx, ecx
mov eax, dword [ebp - 0x2c]
lea esi, [eax + edx*8 + 0x10]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053668
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebp - 0x18], ecx
xor edx, edx
mov word [ebp - 0x1c], dx
jmp 0x1005368e
mov ax, word [ebp - 0x1c]
add ax, 1
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x18]
add ecx, 8
mov dword [ebp - 0x18], ecx
movzx edx, word [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xe]
add ecx, eax
cmp edx, ecx
jge 0x100536c1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
shr edx, 0x1f
and edx, 1
je 0x100536b5
jmp 0x10053679
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xa
jne 0x100536bf
jmp 0x100536c1
jmp 0x10053679
movzx ecx, word [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xc]
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0xe]
add eax, edx
cmp ecx, eax
jl 0x100536e3
mov eax, 0x80004005
jmp 0x10053df5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
shr ecx, 0x1f
and ecx, 1
jne 0x100536fb
mov eax, 0x80004005
jmp 0x10053df5
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
and eax, 0x7fffffff
mov ecx, dword [ebp - 0x2c]
lea esi, [ecx + eax + 0x10]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053723
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 4]
and ecx, 0x7fffffff
add eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
and eax, 0x7fffffff
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0xc]
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx + 0xe]
add edx, ecx
lea esi, [eax + edx*8 + 0x10]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053777
mov eax, 0x80004005
jmp 0x10053df5
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xc]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0xe]
add eax, edx
cmp eax, 9
jle 0x10053796
mov eax, 0x80004005
jmp 0x10053df5
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov word [ebp - 0x1c], cx
jmp 0x100537bc
mov dx, word [ebp - 0x1c]
add dx, 1
mov word [ebp - 0x1c], dx
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x18], eax
movzx ecx, word [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xc]
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0xe]
add eax, edx
cmp ecx, eax
jge 0x100538bb
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
shr ecx, 0x1f
and ecx, 1
jne 0x100537e7
jmp 0x100537a7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
and eax, 0x7fffffff
mov ecx, dword [ebp - 0x2c]
lea esi, [ecx + eax + 4]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp eax, esi
sbb edx, edx
add edx, 1
mov dword [ebp - 0xb4], edx
jns 0x1005381a
mov eax, dword [ebp - 0xb4]
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
and edx, 0x7fffffff
add eax, edx
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
and ecx, 0x7fffffff
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xac]
movzx eax, word [edx]
lea esi, [ecx + eax + 4]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp eax, esi
sbb ecx, ecx
add ecx, 1
mov dword [ebp - 0xb8], ecx
jns 0x10053875
mov eax, dword [ebp - 0xb8]
jmp 0x10053df5
mov ecx, 0x22
mov edi, str.UKURAN_EKSTRAKTOR
mov esi, dword [ebp - 0xac]
add esi, 2
xor edx, edx
mov dword [ebp - 0xd4], edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1005389f
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
cmp dword [ebp - 0xd8], 0
jne 0x100538b6
jmp 0x100538bb
jmp 0x100537a7
movzx edx, word [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xe]
add ecx, eax
cmp edx, ecx
jl 0x100538dd
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
shr edx, 0x1f
and edx, 1
jne 0x100538f5
mov eax, 0x80004005
jmp 0x10053df5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
and ecx, 0x7fffffff
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx + 0x10]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x1005391e
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
and edx, 0x7fffffff
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
and ecx, 0x7fffffff
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xc]
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0xe]
add eax, edx
lea esi, [ecx + eax*8 + 0x10]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053973
mov eax, 0x80004005
jmp 0x10053df5
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xe]
add ecx, eax
cmp ecx, 1
je 0x10053992
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
shr eax, 0x1f
and eax, 1
je 0x100539b3
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2c]
lea esi, [eax + edx + 0x10]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x100539d6
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 8], 0x4e4
je 0x10053a00
mov eax, 0x80004005
jmp 0x10053df5
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 4
je 0x10053a13
mov eax, 0x80004005
jmp 0x10053df5
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
call fcn.10041b00
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jge 0x10053a3f
mov eax, dword [ebp - 0xbc]
jmp 0x10053df5
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
add esi, dword [ecx + 4]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053a5e
mov eax, 0x80004005
jmp 0x10053df5
cmp dword [ebp + 0xc], 0
jne 0x10053a6b
xor eax, eax
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x2c]
add esi, 5
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053a9d
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
cmp dword [ecx], 9
jbe 0x10053abd
mov eax, 0x80004005
jmp 0x10053df5
mov edx, dword [ebp - 0x2c]
add edx, 5
mov dword [ebp - 0x2c], edx
xor eax, eax
mov word [ebp - 0x1c], ax
jmp 0x10053ada
mov cx, word [ebp - 0x1c]
add cx, 1
mov word [ebp - 0x1c], cx
movzx edx, word [ebp - 0x1c]
mov eax, dword [ebp - 0x54]
cmp edx, dword [eax]
jae 0x10053b5c
mov esi, dword [ebp - 0x2c]
add esi, 0x20f
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053b04
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.100282b0
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 0x209]
cmp edx, 1
je 0x10053b41
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x209]
cmp ecx, 2
je 0x10053b41
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + 0x209]
cmp eax, 3
je 0x10053b41
jmp 0x10053b5c
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20b]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx + 0x20f]
mov dword [ebp - 0x2c], ecx
jmp 0x10053ace
movzx edx, word [ebp - 0x1c]
mov eax, dword [ebp - 0x54]
cmp edx, dword [eax]
jb 0x10053b71
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20b]
mov eax, dword [ebp - 0x2c]
lea esi, [eax + edx + 0x20f]
mov ecx, dword [ebp + 8]
call fcn.10060080
cmp esi, eax
jbe 0x10053b9a
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0xd0]
call fcn.10053e20
test eax, eax
jne 0x10053bb7
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.10053410
test eax, eax
jne 0x10053bcd
mov eax, 0x80004005
jmp 0x10053df5
mov ecx, dword [ebp + 8]
call fcn.10053410
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xdc]
add edx, 2
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xdc]
mov cx, word [eax]
mov word [ebp - 0xe2], cx
add dword [ebp - 0xdc], 2
cmp word [ebp - 0xe2], 0
jne 0x10053bea
mov edx, dword [ebp - 0xdc]
sub edx, dword [ebp - 0xe0]
sar edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x50]
call fcn.10048870
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa8]
lea edx, [ecx + ecx + 0x42]
push edx
lea ecx, [ebp - 0x50]
call fcn.10058860
test eax, eax
jne 0x10053c75
mov dword [ebp - 0xc0], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10058820
mov eax, dword [ebp - 0xc0]
jmp 0x10053df5
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10053410
push eax
mov edx, dword [ebp - 0xa8]
add edx, 0x21
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.1007ab04
add esp, 0x10
push 0x2e
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.100533f0
add esp, 8
mov dword [ebp - 0x10], eax
push 0x5c
mov edx, dword [ebp - 0x20]
push edx
call fcn.100533f0
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x10], 0
je 0x10053cd9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
jbe 0x10053cd9
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [edx], cx
push 0x20
lea eax, [ebp - 0xa4]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x38]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov word [ebp - 0x64], dx
push 0xffffffffffffffff
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
add ecx, 0x21
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.1007b04e
add esp, 0x10
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x10053d5d
mov dword [ebp - 0xc4], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10058820
mov eax, dword [ebp - 0xc4]
jmp 0x10053df5
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20b]
push eax
mov ecx, dword [ebp + 8]
call fcn.100282b0
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + ecx + 0x20f]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], 0
je 0x10053dab
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 0x20b]
je 0x10053dcc
mov dword [ebp - 0xc8], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10058820
mov eax, dword [ebp - 0xc8]
jmp 0x10053df5
push 1
mov ecx, dword [ebp + 8]
call fcn.10053430
mov dword [ebp - 0xcc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10058820
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x58]
xor ecx, ebp
call fcn.10079e7c
mov esp, ebp
pop ebp
ret 8