Function at 0x435e20
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov eax, dword [0x52efc0]
lea edi, [ecx + 4]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
test byte [ecx + edx + 0x14], 5
je 0x435e67
movaps xmm0, xmmword [0x4e37a0]
mov dword [esp + 8], 0xffffffff
movaps xmmword [esp + 0x40], xmm0
jmp 0x435e87
mov ecx, dword [edi + edx + 0x18]
lea edx, [esp + 0x40]
mov eax, dword [ecx]
push 0x10
push 1
push 0
push 0
push edx
call dword [eax + 0xc]
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea esi, [esp + 0x40]
add ecx, edi
push esi
call fcn.00411d40
mov ecx, esi
push 0x530618
call fcn.00422e86
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ecx, esi
mov ebx, eax
call fcn.004148a2
movsx eax, bl
mov ecx, edi
push eax
call fcn.00412800
mov ecx, edi
mov esi, edi
call fcn.00411c40
mov edi, dword [esp + 0x14]
lea ebx, [esp + 0x24]
lea ecx, [edi + 8]
mov dword [esp + 0x18], ecx
push ebx
call fcn.00434e90
test byte [0x52e45c], 0x19
jne 0x43614b
mov eax, dword [0x530cf4]
test eax, eax
je 0x435f21
push ebx
push dword [edi + 0x8c]
push dword [edi + 0x94]
push dword [edi + 0x90]
push dword [edi]
call eax
add esp, 0x14
test al, al
je 0x435f21
cmp byte [esp + 0x2f], 0
jns 0x4360e8
jmp 0x4360dc
mov eax, dword [0x52e120]
test al, 2
je 0x435f41
cmp byte [esp + 0x2f], 0
jns 0x435f35
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x52e120]
test al, 1
je 0x435f78
call fcn.004357a0
test al, al
je 0x435f78
movzx eax, byte [esp + 0x2f]
lea ecx, [esp + 0x24]
test al, al
cmovs eax, dword [esp + 0x28]
cmovs ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x44]
push edx
push eax
push ecx
push dword [0x530d00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi], 3
jne 0x435fc4
mov ecx, dword [0x530cd8]
lea ebx, [esp + 0x24]
test ecx, ecx
je 0x435fa5
movzx eax, byte [esp + 0x2f]
mov edx, ebx
test al, al
jns 0x435f9e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push edx
call fcn.0042fe20
cmp byte [ebx + 0xb], 0
mov dword [esp + 0x40], 0xbedead01
mov dword [esp + 0x444], 0x5050dead
jns 0x435fcd
mov eax, dword [esp + 0x24]
jmp 0x435fd1
lea ebx, [esp + 0x24]
jmp 0x4360d6
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x400
push eax
push ecx
call fcn.004472e0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00410e70
add esp, 4
mov ecx, dword [0x530d3c]
test cl, 1
je 0x436279
mov eax, dword [0x530d38]
cmp dword [0x530d34], eax
je 0x4362aa
test cl, 1
je 0x436241
mov ecx, dword [0x530d30]
test eax, eax
jne 0x436026
mov eax, ecx
dec eax
mov dword [esp + 4], esi
cmp ecx, eax
jb 0x4362ad
shl eax, 2
lea ecx, [esp + 0x1c]
add eax, dword [0x530d2c]
push eax
call fcn.0042c3f0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4360c9
cmp byte [ebx + 0xb], 0
mov dword [esp], ebx
jns 0x43605d
mov ebx, dword [esp + 0x24]
jmp 0x436061
lea ebx, [esp + 0x24]
mov eax, dword [esp + 8]
test ebx, ebx
mov dword [esp + 0x10], ecx
lea eax, [ebx + eax]
mov dword [esp + 0xc], eax
je 0x43607f
push eax
call fcn.004ceea0
add esp, 4
jmp 0x436081
xor eax, eax
mov ecx, dword [edi + 0x8c]
mov esi, dword [esp + 8]
mov edx, dword [edi + 0x94]
add ebx, ecx
sub esi, ecx
mov ecx, dword [edi + 0x90]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
lea ebx, [esp + 0x38]
push eax
push ebx
push edx
push ecx
mov eax, dword [esp + 0x20]
push eax
call dword [eax + 4]
add esp, 0x14
mov ebx, dword [esp]
lea ecx, [esp + 0x1c]
call fcn.00435470
mov esi, dword [esp + 4]
cmp byte [ebx + 0xb], 0
jns 0x4360e8
push dword [esp + 0x24]
call fcn.004aeac6
add esp, 4
lea ecx, [edi + 0x98]
call fcn.004436a0
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov dword [edi + eax + 4], 0x4e87c0
mov dword [edi + 8], 0x4e7c80
cmp byte [edi + 0x33], 0
lea edi, [edi + 0x3c]
jns 0x43611c
push dword [esi + 0x24]
call fcn.004aeac6
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004118a4
mov ecx, esi
call fcn.00410e70
mov ecx, edi
call fcn.0041189a
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.004aeb01
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esp + 0x2f]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], esi
test al, al
cmovs eax, dword [esp + 0x28]
cmovns ecx, ebx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push dword [edi + 0x8c]
push eax
push ecx
call fcn.00444150
add esp, 0x10
push 0x18
call fcn.004aea96
add esp, 4
mov esi, eax
mov ecx, eax
push dword [edi + 0x94]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [edi + 0x90]
call fcn.0044b420
call fcn.00449410
mov dword [esp], eax
lea eax, [esp + 0x38]
push eax
call fcn.0045bfc0
add esp, 4
mov word [esp + 0x40], 0x801
mov dword [esp + 0x44], str.message
mov dword [esp + 0x50], esi
push 0x8010
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push str.LogMessage
push 0x52e45c
push 0x49
call fcn.00452630
add esp, 0x30
mov al, byte [esp + 0x40]
test al, al
je 0x436238
xor esi, esi
cmp byte [esp + esi + 0x41], 8
je 0x436224
inc esi
movzx ecx, al
cmp esi, ecx
jae 0x436238
cmp byte [esp + esi + 0x41], 8
jne 0x436215
mov ecx, dword [esp + esi*8 + 0x50]
test ecx, ecx
je 0x436215
mov eax, dword [ecx]
push 1
call dword [eax]
mov al, byte [esp + 0x40]
jmp 0x436215
mov esi, dword [esp + 4]
jmp 0x435eea
or ecx, 1
mov dword [0x530d30], 0
mov dword [0x530d2c], 0
mov dword [0x530d38], 0
mov dword [0x530d34], 0
mov dword [0x530d3c], ecx
xor ecx, ecx
jmp 0x436024
or ecx, 1
mov dword [0x530d30], 0
mov dword [0x530d2c], 0
mov dword [0x530d38], 0
mov dword [0x530d34], 0
mov dword [0x530d3c], ecx
int3
int3