Function at 0x4250e0
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, 0x450
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [ecx], 0x52e270
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 4]
test byte [ecx + edx + 0x18], 5
mov dword [esp + 0x18], ecx
je 0x42512d
movaps xmm0, xmmword [0x52a370]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 8], 0xffffffff
jmp 0x425156
mov ecx, dword [edi + edx + 0x18]
mov eax, dword [ecx]
sub esp, 0x14
movaps xmm0, xmmword [0x52b900]
movups xmmword [esp + 4], xmm0
lea edx, [esp + 0x54]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
lea esi, [esp + 0x40]
push esi
call fcn.00406a00
mov ecx, esi
push 0x581320
call fcn.004177b8
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, esi
call fcn.0040946c
movsx eax, bl
mov ecx, edi
push eax
call fcn.004074c0
mov dword [esp + 0xc], edi
mov ecx, edi
call fcn.00406900
mov esi, dword [esp + 0x18]
lea ecx, [esi + 0xc]
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], ecx
push edi
call fcn.00402d74
test byte [0x57f510], 0x19
jne 0x4254b0
mov eax, dword [0x5819dc]
test eax, eax
je 0x4251fb
lea ecx, [esp + 0x24]
push ecx
push dword [esi + 0x90]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 4]
call eax
add esp, 0x14
test al, al
je 0x4251fb
cmp byte [esp + 0x2f], 0
mov edi, dword [esp + 0xc]
jns 0x42544d
jmp 0x425441
mov eax, dword [0x57f150]
test al, 2
mov edi, dword [esp + 0xc]
je 0x425225
cmp byte [esp + 0x2f], 0
jns 0x425215
mov eax, dword [esp + 0x24]
jmp 0x425219
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x57f150]
test al, 4
jne 0x425234
cmp eax, 1
ja 0x425278
cmp dword [esi + 4], 2
jl 0x425278
push 2
call fcn.0050314f
add esp, 4
movzx ecx, byte [esp + 0x2f]
test cl, cl
cmovs ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
cmovs edx, dword [esp + 0x24]
push eax
push 1
push ecx
push edx
call fcn.00514f9a
add esp, 0x10
push 2
call fcn.0050314f
add esp, 4
push eax
call fcn.00514b3b
add esp, 4
mov eax, dword [0x57f150]
test al, 1
je 0x4252af
call fcn.00424a60
test al, al
je 0x4252af
movzx eax, byte [esp + 0x2f]
test al, al
cmovs eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmovs ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x44]
push edx
push eax
push ecx
push dword [0x5819e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 4], 3
jne 0x4252fc
mov ecx, dword [0x581e08]
lea ebx, [esp + 0x24]
test ecx, ecx
je 0x4252dd
movzx eax, byte [esp + 0x2f]
mov edx, ebx
test al, al
jns 0x4252d6
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push edx
call fcn.0044a940
mov dword [esp + 0x40], 0xbedead01
mov dword [esp + 0x444], 0x5050dead
cmp byte [ebx + 0xb], 0
jns 0x425305
mov eax, dword [esp + 0x24]
jmp 0x425309
lea ebx, [esp + 0x24]
jmp 0x42543b
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x400
push eax
push ecx
call fcn.0042d4f0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004027e0
add esp, 4
mov eax, dword [0x5819fc]
mov ecx, dword [0x581ddc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4255a2
mov eax, dword [0x5819f4]
cmp eax, dword [0x5819f8]
je 0x42560e
mov eax, dword [0x5819fc]
mov ecx, dword [0x581ddc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4255d8
mov eax, dword [0x5819f8]
test eax, eax
mov ecx, dword [0x5819f0]
cmove eax, ecx
add eax, 0xffffffff
cmp ecx, eax
jb 0x425611
shl eax, 2
add eax, dword [0x5819ec]
lea ecx, [esp + 0x20]
push eax
call fcn.0041ee40
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x42542e
mov dword [esp + 4], ebx
cmp byte [ebx + 0xb], 0
jns 0x4253c2
mov ebx, dword [esp + 0x24]
jmp 0x4253c6
lea ebx, [esp + 0x24]
mov eax, dword [esp + 8]
add eax, ebx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x4253e3
push eax
call fcn.00516920
add esp, 4
jmp 0x4253e5
xor eax, eax
mov ecx, dword [esi + 0x90]
mov edi, dword [esp + 8]
sub edi, ecx
add ebx, ecx
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x98]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], edi
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 + 0x24]
push eax
call dword [eax + 4]
add esp, 0x14
mov ebx, dword [esp + 4]
lea ecx, [esp + 0x20]
call fcn.0041ee20
mov edi, dword [esp + 0xc]
cmp byte [ebx + 0xb], 0
jns 0x42544d
push dword [esp + 0x24]
call fcn.004fe838
add esp, 4
lea ecx, [esi + 0xa0]
call fcn.00448b60
lea ebx, [esi + 0x40]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x52a47c
mov dword [esi + 0xc], 0x52a480
cmp byte [esi + 0x37], 0
jns 0x425481
push dword [edi + 0x24]
call fcn.004fe838
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00406574
mov ecx, esi
call fcn.004027e0
mov ecx, ebx
call fcn.0040656a
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.004fe871
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ebx, byte [esp + 0x2f]
test bl, bl
jns 0x4254c1
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x90]
cmp ebx, eax
cmovb eax, ebx
add edi, eax
sub ebx, eax
push 0x18
call fcn.004fe808
add esp, 4
mov dword [esp + 4], eax
mov ecx, eax
push dword [esi + 0x98]
push ebx
push edi
push dword [esi + 0x94]
call fcn.0044b2e0
call fcn.0041e5d0
mov ebx, eax
lea edi, [esp + 0x38]
push edi
call fcn.004365b0
add esp, 4
mov word [esp + 0x40], 0x801
mov dword [esp + 0x44], str.message
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
sub esp, 0x30
lea eax, [esp + 0x70]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0x8008
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.LogMessage
mov dword [esp + 4], 0x57f510
mov dword [esp], 0x49
call fcn.0043ad00
add esp, 0x30
mov al, byte [esp + 0x40]
test al, al
je 0x4251bb
xor edi, edi
jmp 0x425586
add edi, 1
movzx ecx, al
cmp edi, ecx
jae 0x4251bb
cmp byte [esp + edi + 0x41], 8
jne 0x425578
mov ecx, dword [esp + edi*8 + 0x50]
test ecx, ecx
je 0x425578
mov eax, dword [ecx]
push 1
call dword [eax]
movzx eax, byte [esp + 0x40]
jmp 0x425578
push 0x5819fc
call fcn.004fe8b7
add esp, 4
cmp dword [0x5819fc], 0xffffffff
jne 0x42534a
xorps xmm0, xmm0
movups xmmword [0x5819ec], xmm0
push 0x5819fc
call fcn.004fe92d
add esp, 4
jmp 0x42534a
push 0x5819fc
call fcn.004fe8b7
add esp, 4
cmp dword [0x5819fc], 0xffffffff
jne 0x42537c
xorps xmm0, xmm0
movups xmmword [0x5819ec], xmm0
push 0x5819fc
call fcn.004fe92d
add esp, 4
jmp 0x42537c
int3
int3