Function at 0x43ad40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebx
mov ebx, ecx
cmp dword [ebx + 0x1e0], 0
push esi
lea esi, [ebx + 0x1e0]
mov dword [ebp - 0x20], ebx
push edi
mov dword [ebp - 0x18], esi
jne 0x43ad7f
xor eax, eax
jmp 0x43b275
push 0x3ff
lea eax, [ebp - 0x443]
mov byte [ebp - 0x444], 0
push 0
push eax
call fcn.004cf600
add esp, 0xc
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp dword [ebx + 0x1f8], 8
lea edi, [ebx + 0x1e4]
mov dword [ebp - 4], 0
jb 0x43adc6
mov edi, dword [edi]
test edi, edi
jne 0x43adce
xor eax, eax
jmp 0x43ae09
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43add3
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x43adf1
xor eax, eax
jmp 0x43ae06
add esi, esi
mov eax, esi
call fcn.004d4000
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00439dc0
mov esi, dword [ebp - 0x18]
push eax
push dword [0x5da9f0]
lea eax, [ebp - 0x444]
push eax
call fcn.004d3f60
add esp, 0xc
cmp byte [ebp - 0x444], 0
jne 0x43ae2c
xor ecx, ecx
jmp 0x43ae3e
lea ecx, [ebp - 0x444]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43ae35
sub ecx, edx
push ecx
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x40]
call fcn.00410dc0
cmp dword [esi], 0
mov dword [ebp - 0x14], 0
jle 0x43b080
lea esi, [ebx + 0x44]
cmp dword [esi + 0x18], 8
jb 0x43ae6c
mov edi, dword [esi + 4]
jmp 0x43ae6f
lea edi, [esi + 4]
test edi, edi
je 0x43aed0
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x43ae80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ae80
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
cmp eax, 0x3fffffff
jg 0x43aed0
add eax, eax
call fcn.004d4000
mov ebx, esp
test ebx, ebx
je 0x43aed0
mov ecx, dword [ebp - 0x10]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 0x1c], eax
jmp 0x43aed7
mov dword [ebp - 0x1c], 0
cmp dword [esi], 8
jb 0x43aee1
mov edi, dword [esi - 0x14]
jmp 0x43aee4
lea edi, [esi - 0x14]
test edi, edi
je 0x43af3d
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43aef0
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x43af3d
add ebx, ebx
mov eax, ebx
call fcn.004d4000
mov eax, esp
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43af3d
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x10]
jmp 0x43af3f
xor ebx, ebx
cmp dword [esi - 0x18], 8
jb 0x43af4a
mov edi, dword [esi - 0x2c]
jmp 0x43af4d
lea edi, [esi - 0x2c]
test edi, edi
je 0x43afa9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43af56
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
cmp eax, 0x3fffffff
jg 0x43afa9
add eax, eax
call fcn.004d4000
mov eax, esp
mov dword [ebp - 0x24], eax
test eax, eax
je 0x43afa9
mov edx, dword [ebp - 0x10]
push 0
push 0
mov byte [eax], 0
lea ecx, [edx + edx]
push ecx
push eax
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, dword [ebp - 0x24]
jmp 0x43afab
xor edi, edi
cmp dword [esi - 0x30], 8
jb 0x43afb6
mov eax, dword [esi - 0x44]
jmp 0x43afb9
lea eax, [esi - 0x44]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43b018
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43afc5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
cmp eax, 0x3fffffff
jg 0x43b018
add eax, eax
call fcn.004d4000
mov eax, esp
mov dword [ebp - 0x44], eax
test eax, eax
je 0x43b018
mov edx, dword [ebp - 0x24]
push 0
push 0
mov byte [eax], 0
lea ecx, [edx + edx]
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x44]
jmp 0x43b01a
xor eax, eax
push dword [ebp - 0x1c]
push ebx
push edi
push eax
push dword [0x5da9f8]
lea eax, [ebp - 0x444]
push eax
call fcn.004d3f60
add esp, 0x18
cmp byte [ebp - 0x444], 0
jne 0x43b042
xor ecx, ecx
jmp 0x43b059
lea ecx, [ebp - 0x444]
lea edx, [ecx + 1]
jmp 0x43b050
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b050
sub ecx, edx
push ecx
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x40]
call fcn.00410ad0
mov eax, dword [ebp - 0x14]
add esi, 0x60
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx]
jl 0x43ae61
mov esi, ecx
push dword [0x5da9ec]
lea eax, [ebp - 0x444]
push dword [0x5da9fc]
push eax
call fcn.004d3f60
add esp, 0xc
cmp byte [ebp - 0x444], 0
jne 0x43b0a8
xor ecx, ecx
jmp 0x43b0ba
lea ecx, [ebp - 0x444]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b0b1
sub ecx, edx
push ecx
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x40]
call fcn.00410ad0
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi], ebx
jle 0x43b1ae
mov edi, dword [ebp - 0x20]
lea ebx, [ebx]
cmp dword [edi + 0x14], 8
jb 0x43b0ea
mov esi, dword [edi]
jmp 0x43b0ec
mov esi, edi
test esi, esi
jne 0x43b0f4
xor eax, eax
jmp 0x43b152
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b100
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x43b14d
add ebx, ebx
mov eax, ebx
call fcn.004d4000
mov edi, esp
test edi, edi
je 0x43b14a
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 0x20]
jmp 0x43b14f
mov edi, dword [ebp - 0x20]
xor eax, eax
mov ebx, dword [ebp - 0x14]
push eax
push dword [0x5daa00]
lea eax, [ebp - 0x444]
push eax
call fcn.004d3f60
add esp, 0xc
cmp byte [ebp - 0x444], 0
jne 0x43b175
xor ecx, ecx
jmp 0x43b189
lea ecx, [ebp - 0x444]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b180
sub ecx, edx
push ecx
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x40]
call fcn.00410ad0
mov eax, dword [ebp - 0x18]
inc ebx
add edi, 0x60
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], edi
cmp ebx, dword [eax]
jl 0x43b0e0
mov edx, dword [str.__category_]
cmp byte [edx], 0
jne 0x43b1bd
xor ecx, ecx
jmp 0x43b1cb
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b1c2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00410ad0
mov edx, dword [str.__application___applications_]
cmp byte [edx], 0
jne 0x43b1e4
xor ecx, ecx
jmp 0x43b1f9
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b1f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00410ad0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43b229
or esi, eax
jmp 0x43b262
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], esi
jae 0x43b260
mov esi, 0xfffffffe
jmp 0x43b262
xor esi, esi
cmp dword [ebp - 0x2c], 0x10
jb 0x43b273
push dword [ebp - 0x40]
call fcn.004cf489
add esp, 4
mov eax, esi
lea esp, [ebp - 0x450]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4