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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc35c
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x64ef64]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push ebx
call fcn.00419be0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push esi
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00411a30
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4117db
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4117c0
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004081a0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00412e80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x4117f4
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.004081a0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4119c1
cmp dword [ebx + 0x30], 0
je 0x4118db
lea ecx, [ebp - 0x78]
call fcn.00416620
push ecx
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00415bd0
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00412430
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x411871
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x411856
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004081a0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00412e80
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x411886
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.004081a0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp eax, 0x10
jb 0x4118ad
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.004081a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp eax, 8
jb 0x4118d8
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00408aa0
mov ecx, dword [ebp - 0x1c]
cmp dword [ebx + 0x34], 0
je 0x411957
test ecx, ecx
je 0x4119c1
nop dword [eax]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
cmp edx, 0x10
cmovae eax, esi
cmp byte [ecx + eax - 1], 0xa
je 0x411916
cmp edx, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, esi
cmp byte [ecx + eax - 1], 0xd
jne 0x41193d
lea edi, [ecx - 1]
cmp ecx, edi
jb 0x411a19
cmp edx, 0x10
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x2c]
cmovae eax, esi
mov byte [eax + edi], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x4118f0
jmp 0x4119c1
test ecx, ecx
je 0x4119c7
push 2
push 0x610070
lea ecx, [ebp - 0x2c]
call fcn.004135a0
mov ecx, dword [ebp - 0x1c]
cmp dword [ebx + 0x24], 0
je 0x411972
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x1c]
cmp dword [ebx + 0x28], 0
je 0x411994
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x610074
call fcn.00413270
mov ecx, dword [ebp - 0x1c]
add esp, 8
cmp dword [ebx + 0x2c], 0
je 0x4119c1
mov edx, dword [ebx + 0x1c]
test edx, edx
je 0x4119c1
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push edx
cmovae eax, dword [ebp - 0x2c]
push ecx
push 1
push eax
call fcn.005ab76e
push dword [ebx + 0x1c]
call fcn.005ab4b7
add esp, 0x14
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4119d9
lea eax, [edx + 1]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004081a0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054af65
mov esp, ebp
pop ebp
ret 4
push str.invalid_string_position
call fcn.00598193
int3