Function at 0x4909e0
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 [0x754040]
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.005181b0
mov eax, dword [esi + 0x3c]
test al, 0x10
mov dword [ebp - 0x50], esi
je 0x490d7b
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x490a22
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x490e59
cmp ebx, 0x7ffffff8
jae 0x490d39
cmp ebx, 0xa
jbe 0x490b9f
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.0054fbd9
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 0x490a6f
cmp edi, esi
ja 0x490e59
test ebx, ebx
je 0x490a7e
push ebx
push esi
push eax
call fcn.00553570
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 0x490a92
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
jns 0x490aa2
push dword [ebp - 0x1c]
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.004f3b10
mov ecx, esi
push 0x75a2a8
call fcn.004f7620
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x74e248]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x50]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.004f3ca0
movsx eax, bl
mov ecx, edi
push eax
call fcn.00411ba0
mov ecx, edi
call fcn.00410a40
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 0x490d98
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x490b1b
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x490e59
cmp ebx, 0x7ffffff8
jae 0x490d41
cmp ebx, 0xa
jbe 0x490baa
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.0054fbd9
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 0x490b64
cmp edi, esi
ja 0x490e59
test ebx, ebx
je 0x490b73
push ebx
push esi
push eax
call fcn.00553570
add esp, 0xc
mov byte [edi], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x94]
movsx eax, byte [ebp - 0x35]
mov edx, eax
test eax, eax
jns 0x490b8c
mov edx, dword [ebp - 0x3c]
mov ebx, edx
sub ebx, ecx
jb 0x490d49
test al, al
js 0x490bde
lea edi, [ebp - 0x40]
jmp 0x490be1
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
jmp 0x490a60
lea eax, [ebp - 0x40]
mov byte [eax + 0xb], bl
jmp 0x490b55
mov esi, ebx
or esi, 7
inc esi
push esi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
call fcn.0054fbd9
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 0x490bfa
mov edi, dword [ebp - 0x40]
cmp ebx, 0x7ffffff8
jae 0x490d51
add edi, ecx
cmp ebx, 0xa
ja 0x490bb2
lea eax, [ebp - 0x4c]
mov byte [eax + 0xb], bl
lea esi, [eax + ebx]
cmp eax, edi
ja 0x490c09
cmp esi, edi
ja 0x490e59
cmp edx, ecx
je 0x490c18
push ebx
push edi
push eax
call fcn.00553570
add esp, 0xc
mov byte [esi], 0
mov esi, dword [ebp - 0x50]
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x57
mov eax, dword [0x6de3f4]
mov al, byte [eax + 0x57]
test al, al
jne 0x490e98
cmp byte [ebp - 0x41], 0
jns 0x490c58
push dword [ebp - 0x4c]
call fcn.0054fc10
add esp, 4
cmp dword [esi + 4], 3
je 0x490dc8
mov ecx, dword [0x75abe0]
test ecx, ecx
je 0x490ca3
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], eax
mov edi, dword [esi + 0x94]
mov ebx, dword [esi + 0x9c]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x98]
call dword [0x74e248]
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 0x490ccc
mov eax, dword [0x7561b4]
test al, 2
jne 0x490d59
test al, 4
jne 0x490d01
test eax, 0xfffffffa
jne 0x490cc1
cmp dword [esi + 4], 2
jge 0x490d01
test al, 1
mov esi, dword [ebp - 0x50]
jne 0x490e5b
cmp dword [esi + 4], 3
je 0x490db5
cmp byte [ebp - 0x35], 0
jns 0x490ce7
push dword [ebp - 0x40]
call fcn.0054fc10
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.005181e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
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 0x490cc1
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.0056741d
add esp, 0xc
test eax, eax
jns 0x490ecb
mov eax, dword [0x7561b4]
jmp 0x490cc1
lea ecx, [ebp - 0x1c]
call fcn.005836b0
lea ecx, [ebp - 0x40]
call fcn.005836b0
lea ecx, [ebp - 0x4c]
call fcn.00583700
lea ecx, [ebp - 0x4c]
call fcn.005836b0
cmp byte [ebp - 0x35], 0
js 0x490d64
lea eax, [ebp - 0x40]
jmp 0x490d67
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7561b4]
mov esi, dword [ebp - 0x50]
jmp 0x490cb0
xor ebx, ebx
mov esi, 0
test al, 8
je 0x490b9f
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x490a25
xor esi, esi
mov ebx, 0
test al, 8
je 0x490baa
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x490b1e
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
push dword [ebp - 0x5c]
call fcn.005cc9a0
jmp 0x490cd6
mov bl, byte [0x75ac04]
test bl, bl
jne 0x490c62
mov byte [0x75ac04], 1
mov eax, dword [0x75ac0c]
mov ecx, dword [0x758d88]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x490eda
mov ecx, dword [ebp - 0x50]
lea esi, [ebp - 0x1c]
push esi
call fcn.005cc8f0
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x490e1a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x490e59
sete dl
test ecx, ecx
setne dh
or dh, dl
je 0x490e59
push eax
push ecx
push dword [0x75ac08]
call fcn.004a7550
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x490e4b
push dword [ebp - 0x1c]
call fcn.0054fc10
add esp, 4
mov byte [0x75ac04], bl
mov esi, dword [ebp - 0x50]
jmp 0x490c62
ud2
call fcn.005cc650
test al, al
je 0x490ccc
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 [0x75abd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x490ccc
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], 0x6e17ce
lea edx, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
push edi
push eax
call fcn.005cceb0
add esp, 8
jmp 0x490c47
add ebx, eax
cmp ebx, edi
jb 0x490d17
jmp 0x490d32
push 0x75ac0c
call fcn.0054fc5d
add esp, 4
cmp dword [0x75ac0c], 0xffffffff
jne 0x490dfe
push 0x400
push 0x6e17d9
call fcn.004a7510
add esp, 8
mov dword [0x75ac08], eax
push 0x75ac0c
call fcn.0054fcd7
add esp, 4
jmp 0x490dfe