Function at 0x13dbe81
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x41f214]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x50], eax
call fcn.013d7a95
mov edi, 2
mov dword [0x41df4c], 3
mov dword [0x41df50], 0x16
mov dword [0x41df54], edi
call fcn.013a12c8
mov dword [0x41df24], eax
xor ebx, ebx
push eax
push ebx
call fcn.013a9046
add esp, 8
mov dword [esp + 4], 0
mov dword [0x41df58], ebx
push edi
push dword [0x41df24]
call fcn.013a147b
add esp, 8
mov dword [0x41df4c], eax
push 1
push dword [0x41df24]
call fcn.013a147b
add esp, 8
mov dword [0x41df50], eax
push 0x41473e
call fcn.013ee71a
add esp, 4
test eax, eax
je 0x13db306
push eax
call fcn.013a73d8
add esp, 4
test eax, eax
je 0x13db306
mov ecx, dword [eax + 0x48]
mov dword [0x41df4c], ecx
mov eax, dword [eax + 0x4c]
mov dword [0x41df50], eax
push ecx
push 2
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
push dword [0x41df50]
push 1
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
mov ebp, esi
dec ebp
je 0x13db673
mov ebx, dword [esp + 0x6c]
xor eax, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
dec eax
mov dword [esp + 0x10], eax
jmp 0x13db363
mov dword [0x41d700], 1
jmp 0x13db654
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
jmp 0x13db654
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
jmp 0x13db654
mov edi, dword [ebx + 4]
lea ecx, [ebx + 4]
mov al, byte [edi]
test al, al
je 0x13db657
cmp al, 0x2d
mov dword [esp], ecx
jne 0x13db466
mov ecx, dword [0x41df24]
xor eax, eax
cmp esi, 3
jl 0x13db38e
mov eax, dword [ebx + 8]
push ecx
push 1
push eax
push edi
call fcn.0139fe8b
add esp, 0x10
cmp eax, 0xfffffffe
je 0x13db5ea
cmp eax, 2
je 0x13db5de
cmp eax, 1
je 0x13db654
push 0x414776
push edi
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13db33c
push 0x41477d
push edi
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13db34b
push 0x414780
push edi
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13dbea8
push 0x414783
push edi
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13dbea8
push 0x41478d
push edi
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13dbea3
push 0x414794
push edi
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13dbeda
push 0x41479b
push edi
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13db357
push 2
call fcn.013e2e0b
add esp, 4
push edi
push 0x4147a8
push eax
jmp 0x13db5fb
push dword [0x41df24]
call fcn.013a3929
add esp, 4
test eax, eax
je 0x13db487
mov eax, dword [0x41df58]
or eax, dword [esp + 4]
jne 0x13db933
push 7
push 0x4147c4
push edi
call fcn.013ef42c
add esp, 0xc
test eax, eax
je 0x13db504
push 0x2c
push edi
call fcn.013e26fc
add esp, 8
mov esi, eax
test esi, esi
je 0x13db4e1
mov byte [esi], 0
push edi
call fcn.013a73d8
add esp, 4
mov edi, eax
test edi, edi
je 0x13db4de
mov eax, dword [edi + 0x48]
mov dword [0x41df4c], eax
push eax
push 2
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x10], eax
inc esi
mov edi, esi
push 0x40
push edi
call fcn.013e282c
add esp, 8
lea ebx, [edi + 1]
cmp eax, edi
cmovne ebx, edi
je 0x13db55f
test eax, eax
je 0x13db55f
mov edi, ebx
mov ebx, eax
mov byte [eax], 0
inc ebx
jmp 0x13db561
cmp byte [edi + 7], 0x2f
lea esi, [edi + 7]
jne 0x13db517
cmp byte [edi + 8], 0x2f
lea eax, [edi + 9]
cmove esi, eax
push 1
push 2
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
push 0x4147cc
push esi
call fcn.013a2e0e
add esp, 8
mov cl, byte [esi + eax]
test cl, cl
je 0x13db5b2
add eax, esi
cmp cl, 0x3a
mov byte [eax], 0
jne 0x13db5b2
inc eax
push eax
call fcn.013ed6d4
add esp, 4
push eax
xor eax, eax
inc eax
push eax
push dword [0x41df24]
jmp 0x13db5bc
xor edi, edi
call fcn.013a12c8
mov esi, eax
push esi
push ebx
call fcn.013a9046
add esp, 8
cmp dword [0x41df58], 0
je 0x13db60c
push ebx
push 0
push dword [0x41df24]
call fcn.013a1acd
add esp, 0xc
push dword [0x41df50]
push 1
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
xor eax, eax
inc eax
mov dword [esp + 4], eax
jmp 0x13db636
push 0xffffffffffffffff
push 1
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
push esi
push 0
push dword [0x41df24]
call fcn.013a1acd
add esp, 0xc
xor eax, eax
inc eax
mov dword [esp + 4], eax
jmp 0x13db654
add esi, 0xfffffffe
add ebx, 8
mov ebp, esi
mov ecx, ebx
jmp 0x13db657
push 2
call fcn.013e2e0b
add esp, 4
push edi
push 0x41474d
push eax
call fcn.013a284c
add esp, 0xc
xor eax, eax
inc eax
mov dword [esp + 8], eax
jmp 0x13db654
push esi
call fcn.013a3929
add esp, 4
test eax, eax
je 0x13db57f
push esi
push dword [0x41df24]
call fcn.013a1380
add esp, 8
mov dword [0x41df58], 1
push esi
call fcn.013a1342
add esp, 4
test edi, edi
je 0x13db654
push edi
push 0x34
push dword [0x41df24]
call fcn.013a1acd
add esp, 0xc
mov ecx, dword [esp]
mov esi, ebp
dec ebp
mov ebx, ecx
jne 0x13db363
cmp dword [esp + 8], 0
mov ebp, dword [esp + 0x10]
jne 0x13dbacd
jmp 0x13db686
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
dec ebp
push dword [0x41df24]
call fcn.013a3929
add esp, 4
test eax, eax
je 0x13dbea3
mov eax, dword [esp + 4]
or eax, dword [0x41df58]
je 0x13dbea3
push 0
push dword [0x41df24]
call fcn.013a15b8
add esp, 8
push eax
call fcn.013a2fa2
add esp, 4
mov esi, eax
push 0x403052
push esi
call fcn.013ef5dc
add esp, 8
cmp byte [esi + eax], 0
lea ebx, [esi + eax]
je 0x13db706
push 0x40
push ebx
call fcn.013e282c
add esp, 8
mov edi, eax
test edi, edi
je 0x13db706
mov byte [edi], 0
push ebx
push 0x34
push dword [0x41df24]
call fcn.013a1acd
add esp, 0xc
inc edi
mov ebx, edi
push 0x3a
push ebx
call fcn.013a2e81
add esp, 8
mov edi, eax
test edi, edi
je 0x13db72c
lea eax, [edi + 1]
push 0x3a
push eax
call fcn.013a2e81
add esp, 8
test eax, eax
jne 0x13db72c
mov byte [edi], 0
mov eax, esi
jmp 0x13db734
mov byte [eax], cl
inc eax
inc ebx
mov cl, byte [ebx]
cmp cl, 9
je 0x13db733
cmp cl, 0x20
je 0x13db733
test cl, cl
jne 0x13db730
mov byte [eax], 0
xor eax, eax
push esi
push eax
push dword [0x41df24]
call fcn.013a1acd
add esp, 0xc
push esi
call fcn.013a31d8
add esp, 4
push dword [0x41df24]
call fcn.013a1251
add esp, 4
cmp dword [esp + 0xc], 0
je 0x13db789
push 1
push 0x2b
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
push 0x14
push dword [0x41df24]
call fcn.013a15b8
add esp, 8
cmp byte [eax], 0
jne 0x13db7cf
push 0x15
push dword [0x41df24]
call fcn.013a15b8
add esp, 8
cmp byte [eax], 0
jne 0x13db7cf
push 0x2e
push dword [0x41df24]
call fcn.013a15b8
add esp, 8
cmp byte [eax], 0
jne 0x13db7cf
or byte [0x41df54], 4
push 2
push dword [0x41df24]
call fcn.013a147b
add esp, 8
push eax
call fcn.013a740f
add esp, 4
test eax, eax
mov dword [0x41df1c], eax
je 0x13db8fc
cmp ebp, 0xffffffff
je 0x13db80b
push ebp
push 1
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
call fcn.013d7c9c
cmp dword [0x41df44], 0
je 0x13db912
push 2
push dword [0x41df24]
call fcn.013a147b
add esp, 8
cmp eax, 3
jne 0x13db88b
push 0x95
push dword [0x41df24]
call fcn.013a147b
add esp, 8
test eax, eax
jne 0x13db88b
push 0x1d
push dword [0x41df24]
call fcn.013a147b
add esp, 8
test eax, eax
jne 0x13db88b
push 0
push 0x9b
push dword [0x41df24]
call fcn.013a1823
add esp, 0xc
test eax, eax
jne 0x13db88b
push 1
push 0xa9
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
xor eax, eax
push dword [0x41df24]
push eax
call fcn.013a2c58
add esp, 8
mov dword [0x41df30], eax
push eax
call fcn.013d5f43
add esp, 4
cmp dword [esp + 0x14], 0
je 0x13db9e6
mov eax, dword [0x41df1c]
mov edi, dword [eax + 0x40]
test edi, edi
je 0x13dbab1
mov ebx, dword [0x41df24]
push 1
push ebx
call fcn.013a147b
add esp, 8
mov esi, eax
push 0
push dword [0x41df24]
call fcn.013a15b8
add esp, 8
push ebx
push esi
push eax
call edi
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
jmp 0x13dbad0
push 2
call fcn.013e2e0b
add esp, 4
push eax
push 1
push 0x2b
push 0x4147cf
jmp 0x13db926
push 2
call fcn.013e2e0b
add esp, 4
push eax
push 1
push 0x19
push 0x4147fb
call fcn.013ee4d5
add esp, 0x10
jmp 0x13dbacd
xor eax, eax
xor esi, esi
xor ebx, ebx
jmp 0x13db99c
mov cl, byte [edi]
jmp 0x13db960
test dl, 1
je 0x13db958
lea ebx, [esi + 0x200]
push 1
push ebx
push eax
call fcn.013a30df
add esp, 0xc
mov cl, byte [edi]
mov byte [eax + esi], cl
inc esi
mov cl, byte [edi + 1]
inc edi
cmp esi, ebx
setge dl
test cl, cl
jne 0x13db93f
test dl, dl
je 0x13db97f
lea ebx, [esi + 0x200]
push 1
push ebx
push eax
call fcn.013a30df
add esp, 0xc
mov ecx, ebp
mov byte [eax + esi], 0x20
inc esi
mov ebp, 0
dec ecx
je 0x13db99c
mov edx, dword [esp]
mov ebp, ecx
mov edi, dword [edx + 4]
add edx, 4
mov dword [esp], edx
test ebp, ebp
jne 0x13db93b
test esi, esi
je 0x13db9a9
mov byte [eax + esi - 1], 0
push eax
push 0x14
push dword [0x41df24]
call fcn.013a1acd
add esp, 0xc
push 0x402159
push 0x15
push dword [0x41df24]
call fcn.013a1acd
add esp, 0xc
push 1
push 0x16
push dword [0x41df24]
call fcn.013a1975
add esp, 0xc
jmp 0x13db662
cmp dword [0x41df5c], 0
je 0x13db9fe
push 0x414850
push 0
call fcn.013d5f4d
add esp, 8
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
call dword [0x4832f4]
mov dword [0x41df40], eax
push 7
push dword [0x41df24]
call fcn.013a147b
add esp, 8
test eax, eax
mov ebx, 0
je 0x13dba3f
push 0xfffffffffffffff6
call dword [0x4833b8]
push eax
call dword [0x483384]
xor ebx, ebx
cmp eax, 2
sete bl
mov eax, dword [0x41df1c]
mov eax, dword [eax]
mov dword [esp], eax
push 8
push dword [0x41df24]
call fcn.013a147b
add esp, 8
mov esi, eax
push 1
push dword [0x41df24]
call fcn.013a147b
add esp, 8
mov edi, eax
push ebp
push dword [0x41df24]
call fcn.013a15b8
add esp, 8
lea ecx, [esp + 0x24]
push esi
push ebx
push ecx
push edi
push eax
push dword [0x41df24]
push 0x41df20
push ebp
call dword [esp + 0x20]
add esp, 0x20
mov esi, eax
test esi, esi
je 0x13dbae3
push 2
call fcn.013e2e0b
add esp, 4
push esi
push 0x414874
push eax
jmp 0x13dbac5
mov esi, dword [eax + 0x44]
push 2
call fcn.013e2e0b
add esp, 4
push esi
push 0x414815
push eax
call fcn.013a284c
add esp, 0xc
xor ebx, ebx
inc ebx
mov ecx, dword [esp + 0x50]
call fcn.013df522
mov eax, ebx
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x41df1c]
push dword [0x41df30]
push dword [0x41df20]
call dword [eax + 0x34]
add esp, 8
push dword [esp + 0x24]
call fcn.013a31d8
add esp, 4
mov esi, dword [0x4833b8]
push 0xfffffffffffffff6
call esi
mov dword [0x41df34], eax
push 0xfffffffffffffff5
call esi
mov dword [0x41df60], eax
push 0xfffffffffffffff4
call esi
mov dword [0x41df64], eax
push 0x41df68
push dword [0x41df34]
call dword [0x483364]
push 1
push dword [0x41df34]
call dword [0x48345c]
xor edi, edi
mov esi, 0x45e60b
push edi
push edi
push esi
push dword [0x41df60]
call fcn.013d6d0a
add esp, 0x10
mov dword [0x41df3c], eax
push edi
push edi
push esi
push dword [0x41df64]
call fcn.013d6d0a
add esp, 0x10
mov dword [0x41df38], eax
call dword [0x483374]
mov dword [0x41df18], eax
call dword [0x4833d4]
mov ebx, eax
lea esi, [esp + 0x1c]
lea ebp, [esp + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov dword [esp + 4], 0
cmp dword [esp + 4], 0
jne 0x13dbbf4
mov eax, dword [0x41df1c]
push dword [0x41df20]
call dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x13dbbec
xor eax, eax
push eax
push eax
push 0x45e529
push dword [0x41df34]
call fcn.013d6ae0
add esp, 0x10
mov dword [0x41df6c], eax
xor eax, eax
inc eax
mov dword [esp + 4], eax
jmp 0x13dbbf4
mov dword [esp + 4], 0
call fcn.0139fdfd
test eax, eax
je 0x13dbc05
mov dword [esp + 0x20], ebx
xor edi, edi
jmp 0x13dbc38
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.013d4771
add esp, 8
test eax, eax
mov edi, 0xffffffff
je 0x13dbc38
call dword [0x4833d4]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub edi, eax
sub eax, ebx
sub ecx, ebx
cmp eax, ecx
mov ecx, 0
cmova edi, ecx
push esi
call fcn.013d70bc
add esp, 4
mov ecx, dword [esp + 0x1c]
inc ecx
push 4
push ecx
push eax
call fcn.013a30df
add esp, 0xc
mov edx, dword [0x41df40]
mov ecx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edx
mov ecx, dword [esp + 0x1c]
inc ecx
push 8
push edi
mov edi, eax
push 0
push edi
push ecx
call dword [0x4832d4]
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jae 0x13dbc8d
push dword [edi + ebx*4]
call fcn.013d71f7
add esp, 4
jmp 0x13dbdd5
mov dword [esp + 8], ebx
mov ebx, dword [0x4832d8]
mov dword [esp + 0x10], edi
mov edi, 0x8004
jne 0x13dbcca
lea esi, [esp + 0x18]
push esi
call fcn.013da14d
add esp, 4
xor edi, edi
cmp eax, 0xffffffff
je 0x13dbd0b
mov ebx, dword [esp]
inc edi
push esi
call fcn.013da173
add esp, 4
cmp eax, 0xffffffff
jne 0x13dbcb9
jmp 0x13dbd0e
inc eax
cmp dword [esp + 8], eax
jne 0x13dbdcd
push 1
push edi
push edi
push 0xffffffffffffffff
push ebp
jmp 0x13dbd00
mov esi, dword [esp + 0x30]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [esi]
add esp, 0xc
push esi
call fcn.013a31d8
add esp, 4
push 1
push edi
push edi
push 0xffffffffffffffff
push ebp
call ebx
test eax, eax
jne 0x13dbcde
jmp 0x13dbdc9
mov ebx, dword [esp]
cmp edi, dword [esp + 0xc]
jle 0x13dbd2a
add edi, 0x10
push 4
push edi
push ebx
call fcn.013a30df
add esp, 0xc
mov dword [esp], eax
mov dword [esp + 0xc], edi
push esi
call fcn.013da14d
add esp, 4
cmp eax, 0xffffffff
je 0x13dbdc5
mov edi, dword [esp]
xor ebp, ebp
lea esi, [esp + 0x18]
dec ebp
mov dword [edi + ebp*4 + 4], eax
push esi
call fcn.013da173
add esp, 4
inc ebp
cmp eax, 0xffffffff
jne 0x13dbd46
test ebp, ebp
js 0x13dbdc5
xor ebx, ebx
mov eax, dword [esp]
mov edi, dword [eax + ebx*4]
lea eax, [esp + 0x24]
push eax
push 0
push edi
call dword [0x41df70]
test eax, eax
jne 0x13dbdbe
push edi
call fcn.013da568
add esp, 4
push dword [esp + 0x24]
call fcn.013da568
add esp, 4
mov esi, 0xffffffd0
mov eax, dword [esi + 0x413e9c]
test dword [esp + 0x24], eax
je 0x13dbdb9
mov ecx, dword [esi + 0x413e98]
movzx eax, ax
mov ecx, dword [esp + ecx*4 + 0x28]
shl ecx, 0x10
or ecx, eax
push ecx
push edi
call fcn.013d9bf0
add esp, 8
add esi, 8
jne 0x13dbd91
cmp ebx, ebp
lea ebx, [ebx + 1]
jne 0x13dbd5f
lea ebp, [esp + 0x24]
lea esi, [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 8]
call fcn.0139fdc4
cmp ebx, 0x102
jne 0x13dbde8
mov ebx, dword [esp + 0x20]
jmp 0x13dbdf0
call dword [0x4833d4]
mov ebx, eax
push edi
call fcn.013a31d8
add esp, 4
cmp dword [esp + 4], 0
je 0x13dbe20
mov eax, dword [0x41df1c]
push dword [0x41df20]
call dword [eax + 0x10]
add esp, 4
push eax
push dword [0x41df6c]
call fcn.013d7391
add esp, 8
mov eax, dword [0x41df1c]
push dword [0x41df20]
call dword [eax + 0x20]
add esp, 4
test eax, eax
jne 0x13dbbab
push dword [0x41df3c]
call fcn.013d73db
add esp, 4
mov edi, eax
push dword [0x41df38]
call fcn.013d73db
add esp, 4
add eax, edi
jne 0x13dbbab
mov eax, dword [0x41df1c]
push dword [0x41df20]
call dword [eax + 0x24]
add esp, 4
test eax, eax
jns 0x13dbe93
push 2
call fcn.013e2e0b
add esp, 4
push eax
push 1
push 0x25
push 0x414892
call fcn.013ee4d5
add esp, 0x10
xor eax, eax
inc eax
push eax
call fcn.013d5ac8
add esp, 4
xor ebx, ebx
jmp 0x13dbad0
call fcn.013dbee6
push 0x406f97
call fcn.013a3b6b
add esp, 4
mov esi, eax
push esi
push 0x411500
push 0x4148b8
call fcn.013dc150
add esp, 0xc
push esi
call fcn.013a31d8
add esp, 4
push 0
call fcn.013eaff5
call fcn.013d5f2a
push 1
call fcn.013eaff5