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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov esi, ecx
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea ecx, [ebp - 0x34]
mov dword [ecx], eax
mov dword [ecx + 4], eax
call fcn.005ffce0
mov eax, dword [esi + 0x3c]
test al, 0x10
mov dword [ebp - 0x50], esi
je 0x53bb94
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x53b842
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x53bc72
cmp ebx, 0x7ffffff8
jae 0x53bb52
cmp ebx, 0xa
ja 0x53b866
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
jmp 0x53b884
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.006507be
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
lea edi, [eax + ebx]
cmp eax, esi
ja 0x53b893
cmp edi, esi
ja 0x53bc72
test ebx, ebx
je 0x53b8a2
push ebx
push esi
push eax
call fcn.00654250
add esp, 0xc
mov esi, dword [ebp - 0x50]
lea ebx, [esi + 8]
mov byte [edi], 0
movsx eax, byte [ebp - 0x11]
test eax, eax
jns 0x53b8b6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
jns 0x53b8c6
push dword [ebp - 0x1c]
call fcn.006507ee
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.005c8660
mov ecx, esi
push 0x7b1cfc
call fcn.005cc900
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x7a29f4]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x50]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.005c87f0
movsx eax, bl
mov ecx, edi
push eax
call fcn.0047d780
mov ecx, edi
call fcn.0047c660
xor eax, eax
dec eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x3c]
test al, 0x10
je 0x53bbb1
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x53b93f
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x53bc72
cmp ebx, 0x7ffffff8
jae 0x53bb5a
cmp ebx, 0xa
jbe 0x53b9c3
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.006507be
add esp, 4
mov dword [ebp - 0x40], eax
or edi, 0x80000000
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
lea edi, [eax + ebx]
cmp eax, esi
ja 0x53b988
cmp edi, esi
ja 0x53bc72
test ebx, ebx
je 0x53b997
push ebx
push esi
push eax
call fcn.00654250
add esp, 0xc
mov byte [edi], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x90]
movsx eax, byte [ebp - 0x35]
mov edx, eax
test eax, eax
jns 0x53b9b0
mov edx, dword [ebp - 0x3c]
mov ebx, edx
sub ebx, ecx
jb 0x53bb62
test al, al
js 0x53b9f7
lea edi, [ebp - 0x40]
jmp 0x53b9fa
lea eax, [ebp - 0x40]
mov byte [eax + 0xb], bl
jmp 0x53b979
mov esi, ebx
or esi, 7
inc esi
push esi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
call fcn.006507be
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x4c], eax
or esi, 0x80000000
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
jmp 0x53ba13
mov edi, dword [ebp - 0x40]
cmp ebx, 0x7ffffff8
jae 0x53bb6a
add edi, ecx
cmp ebx, 0xa
ja 0x53b9cb
lea eax, [ebp - 0x4c]
mov byte [eax + 0xb], bl
lea esi, [eax + ebx]
cmp eax, edi
ja 0x53ba22
cmp esi, edi
ja 0x53bc72
cmp edx, ecx
je 0x53ba31
push ebx
push edi
push eax
call fcn.00654250
add esp, 0xc
mov byte [esi], 0
mov esi, dword [ebp - 0x50]
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x57
mov eax, dword [0x750f80]
mov al, byte [eax + 0x57]
test al, al
jne 0x53bcb1
cmp byte [ebp - 0x41], 0
jns 0x53ba71
push dword [ebp - 0x4c]
call fcn.006507ee
add esp, 4
cmp dword [esi + 4], 3
je 0x53bbe1
mov ecx, dword [0x7b267c]
test ecx, ecx
je 0x53babc
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], eax
mov edi, dword [esi + 0x90]
mov ebx, dword [esi + 0x98]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x94]
call dword [0x7a29f4]
lea eax, [ebp - 0x40]
push eax
push edi
push ebx
push esi
mov esi, dword [ebp - 0x50]
push dword [ebp - 0x54]
call ecx
add esp, 0x14
test al, al
jne 0x53bae5
mov eax, dword [0x7ab82c]
test al, 2
jne 0x53bb72
test al, 4
jne 0x53bb1a
test eax, 0xfffffffa
jne 0x53bada
cmp dword [esi + 4], 2
jge 0x53bb1a
test al, 1
mov esi, dword [ebp - 0x50]
jne 0x53bc74
cmp dword [esi + 4], 3
je 0x53bbce
cmp byte [ebp - 0x35], 0
jns 0x53bb00
push dword [ebp - 0x40]
call fcn.006507ee
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.005ffd10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x40]
movsx edi, byte [esi + 0xb]
test edi, edi
cmovs edi, dword [esi + 4]
cmovs esi, dword [esi]
test edi, edi
je 0x53bada
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.00669dd6
add esp, 0xc
test eax, eax
jns 0x53bce4
mov eax, dword [0x7ab82c]
jmp 0x53bada
lea ecx, [ebp - 0x1c]
call fcn.006837c0
lea ecx, [ebp - 0x40]
call fcn.006837c0
lea ecx, [ebp - 0x4c]
call fcn.006837d0
lea ecx, [ebp - 0x4c]
call fcn.006837c0
cmp byte [ebp - 0x35], 0
js 0x53bb7d
lea eax, [ebp - 0x40]
jmp 0x53bb80
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7ab82c]
mov esi, dword [ebp - 0x50]
jmp 0x53bac9
xor ebx, ebx
mov esi, 0
test al, 8
je 0x53b85e
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x53b845
xor esi, esi
mov ebx, 0
test al, 8
je 0x53b9c3
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x53b942
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
push dword [ebp - 0x5c]
call fcn.006a56e0
jmp 0x53baef
mov bl, byte [0x7b26a0]
test bl, bl
jne 0x53ba7b
mov byte [0x7b26a0], 1
mov eax, dword [0x7b26a8]
mov ecx, dword [0x7ad2c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x53bcf3
mov ecx, dword [ebp - 0x50]
lea esi, [ebp - 0x1c]
push esi
call fcn.006a5630
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x53bc33
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x53bc72
sete dl
test ecx, ecx
setne dh
or dh, dl
je 0x53bc72
push eax
push ecx
push dword [0x7b26a4]
call fcn.00557b70
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x53bc64
push dword [ebp - 0x1c]
call fcn.006507ee
add esp, 4
mov byte [0x7b26a0], bl
mov esi, dword [ebp - 0x50]
jmp 0x53ba7b
ud2
call fcn.006a5360
test al, al
je 0x53bae5
lea eax, [ebp - 0x40]
movsx ecx, byte [eax + 0xb]
test ecx, ecx
cmovs ecx, dword [eax + 4]
mov dword [ebp - 0x1c], 0xffffffff
cmovs eax, dword [eax]
push 0
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
push dword [0x7b2670]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x53bae5
movzx ecx, al
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov dword [eax], str.LogMessage
lea edx, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
push edi
push eax
call fcn.006a5c40
add esp, 8
jmp 0x53ba60
add ebx, eax
cmp ebx, edi
jb 0x53bb30
jmp 0x53bb4b
push 0x7b26a8
call fcn.00650831
add esp, 4
cmp dword [0x7b26a8], 0xffffffff
jne 0x53bc17
push 0x400
push str.LOG_FATAL
call fcn.00557b50
add esp, 8
mov dword [0x7b26a4], eax
push 0x7b26a8
call fcn.006508ab
add esp, 4
jmp 0x53bc17