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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x458
mov esi, esp
mov eax, dword [0x4f002c]
lea ebx, [ecx + 8]
mov edi, ecx
mov ecx, ebx
xor eax, ebp
mov dword [esi + 0x450], eax
lea eax, [esi + 0x30]
push eax
call fcn.00414630
mov eax, dword [esi + 0x38]
mov dword [esi + 0x18], edi
add eax, dword [esi + 0x30]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 0x38]
mov ecx, dword [eax + 4]
mov dword [esi + 0x34], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x30]
push eax
call fcn.004132b0
add esp, 4
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x20]
mov ecx, dword [esi + 0x34]
mov byte [esi], al
test ecx, ecx
je 0x4141be
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4141be
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
movsx eax, byte [esi]
mov ecx, ebx
push eax
call fcn.00415d90
mov ecx, ebx
call fcn.004013bc
mov edi, dword [esi + 0x18]
lea ebx, [esi + 0x438]
lea ecx, [edi + 0xc]
mov dword [esi], ecx
push ebx
call fcn.00415ba0
mov eax, dword [0x4f2cc0]
test eax, eax
je 0x414252
push ebx
push dword [edi + 0xa0]
push dword [edi + 0xa8]
push dword [edi + 0xa4]
push dword [edi]
call eax
add esp, 0x14
test al, al
je 0x414252
mov eax, dword [esi + 0x44c]
cmp eax, 0x10
jb 0x414589
mov ecx, dword [esi + 0x438]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x414243
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41461d
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.0048bd31
add esp, 8
jmp 0x414589
test byte [section..data], 2
jne 0x414285
cmp dword [edi], 2
jl 0x4142e9
push 2
call fcn.004aa5cf
add esp, 4
mov ecx, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x4142c3
mov edx, dword [esi + 0x438]
jmp 0x4142c9
cmp dword [esi + 0x44c], 0xf
mov eax, ebx
jbe 0x414296
mov eax, dword [esi + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
call fcn.004aa5cf
add esp, 4
mov ecx, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x4142bc
mov ebx, dword [esi + 0x438]
push eax
push 1
push ecx
push ebx
jmp 0x4142ce
lea edx, [esi + 0x438]
push eax
push 1
push ecx
push edx
call fcn.004b7bb5
add esp, 0x10
push 2
call fcn.004aa5cf
add esp, 4
push eax
call fcn.004b70ba
add esp, 4
test byte [section..data], 1
je 0x41432c
call fcn.00413850
test al, al
je 0x41432c
mov eax, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x414312
mov ecx, dword [esi + 0x438]
jmp 0x414318
lea ecx, [esi + 0x438]
push 0
lea edx, [esi + 0x30]
push edx
push eax
push ecx
push dword [0x4f2ce0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi], 3
jne 0x414541
mov ecx, dword [0x4f2f18]
test ecx, ecx
je 0x414363
mov eax, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x414356
mov edx, dword [esi + 0x438]
jmp 0x41435c
lea edx, [esi + 0x438]
push eax
push edx
call fcn.00424ff0
cmp dword [esi + 0x44c], 0xf
mov dword [esi + 0x30], 0xbedead01
mov dword [esi + 0x434], 0x5050dead
jbe 0x414385
mov eax, dword [esi + 0x438]
jmp 0x41438b
lea eax, [esi + 0x438]
lea ecx, [esi + 0x34]
push 0x400
push eax
push ecx
call fcn.0041e1f0
add esp, 0xc
lea eax, [esi + 0x30]
push eax
call fcn.004040e0
add esp, 4
mov eax, dword [0x4f2ccc]
test eax, eax
je 0x414613
mov eax, dword [0x4f2ccc]
cmp eax, 1
ja 0x41441e
push 0x4f2ccc
call fcn.004232e0
add esp, 4
test al, al
je 0x414419
mov dword [0x4f2cd4], 0
mov dword [0x4f2cd0], 0
mov dword [0x4f2cdc], 0
mov dword [0x4f2cd8], 0
push 0x4f2ccc
push 0
push 0x4f2cd0
push 0x4f2ccc
call fcn.00423390
add esp, 0x10
mov eax, 0x4f2cd0
jmp 0x41441e
mov eax, dword [0x4f2ccc]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x414613
mov eax, dword [0x4f2ccc]
cmp eax, 1
ja 0x414492
push 0x4f2ccc
call fcn.004232e0
add esp, 4
test al, al
je 0x41448d
mov dword [0x4f2cd4], 0
mov dword [0x4f2cd0], 0
mov dword [0x4f2cdc], 0
mov dword [0x4f2cd8], 0
push 0x4f2ccc
push 0
push 0x4f2cd0
push 0x4f2ccc
call fcn.00423390
add esp, 0x10
mov eax, 0x4f2cd0
jmp 0x414492
mov eax, dword [0x4f2ccc]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 4]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x414618
shl edx, 2
lea ecx, [esi + 0x1c]
add edx, dword [eax]
push edx
call fcn.0040b370
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x414539
cmp dword [esi + 0x44c], 0xf
jbe 0x4144cc
mov ecx, dword [esi + 0x438]
jmp 0x4144d2
lea ecx, [esi + 0x438]
mov edx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
add edx, dword [esi + 8]
mov dword [esi + 0xc], edx
je 0x4144f0
push edx
call fcn.004b8c80
add esp, 4
mov dword [esi + 4], eax
jmp 0x4144f7
mov dword [esi + 4], 0
mov ecx, dword [edi + 0xa0]
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 8]
mov edx, dword [edi + 0xa8]
add eax, ecx
sub ebx, ecx
mov ecx, dword [edi + 0xa4]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x2c], ebx
lea ebx, [esi + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x20]
push eax
push ebx
push edx
push ecx
mov eax, dword [esi + 0x14]
push eax
call dword [eax + 4]
add esp, 0x14
lea ecx, [esi + 0x1c]
call fcn.0040b350
mov eax, dword [esi + 0x44c]
cmp eax, 0x10
jb 0x41457f
mov ecx, dword [esi + 0x438]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x414575
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41461d
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.0048bd31
add esp, 8
mov dword [esi + 0x44c], 0xf
lea ecx, [edi + 0xac]
call fcn.004233f0
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov dword [edi + eax + 8], 0x4cd3fc
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [edi + eax + 4], ecx
mov ecx, dword [esi]
mov dword [edi + 0xc], 0x4cd410
call fcn.004152a0
mov dword [edi + 0xc], 0x4cd450
mov ebx, dword [edi + 0x40]
lea edi, [edi + 0x58]
test ebx, ebx
je 0x4145ef
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4145e6
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4145e6
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
call fcn.0048bd2c
add esp, 4
mov dword [edi], 0x4cd48c
push edi
call fcn.0048d2ab
add esp, 4
mov ecx, dword [esi + 0x450]
xor ecx, ebp
call fcn.0048bd44
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
call fcn.004b5789
int3