Function at 0x482940
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 [0x63a1e8]
lea esi, [ecx + 8]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [ecx], 0x5c6ef4
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 8]
mov edx, dword [eax + 4]
test byte [ecx + edx + 0x18], 5
je 0x48298d
movaps xmm0, xmmword [0x5be710]
mov dword [esp + 8], 0xffffffff
movups xmmword [esp + 0x40], xmm0
jmp 0x4829ad
mov ecx, dword [esi + edx + 0x18]
lea edx, [esp + 0x40]
mov eax, dword [ecx]
push 0x10
push 1
push 0
push 0
push edx
call dword [eax + 0xc]
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea edi, [esp + 0x40]
add ecx, esi
push edi
call fcn.00462330
mov ecx, edi
push 0x63b6e8
call fcn.00473308
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ecx, edi
mov ebx, eax
call fcn.00464fdc
movsx eax, bl
mov ecx, esi
push eax
call fcn.00462fd0
mov ecx, esi
mov edi, esi
call fcn.00462230
mov esi, dword [esp + 0x14]
lea ebx, [esp + 0x24]
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], ecx
push ebx
call fcn.0042b55e
test byte [0x6395e0], 0x19
jne 0x482cf4
mov eax, dword [0x63bdb0]
test eax, eax
je 0x482a48
push ebx
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 0x482a48
cmp byte [esp + 0x2f], 0
jns 0x482c91
jmp 0x482c85
mov eax, dword [0x639220]
test al, 2
je 0x482a68
cmp byte [esp + 0x2f], 0
jns 0x482a5c
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x639220]
test al, 4
jne 0x482a77
cmp eax, 1
ja 0x482abb
cmp dword [esi + 4], 2
jl 0x482abb
push 2
call fcn.00595aaf
add esp, 4
movzx ecx, byte [esp + 0x2f]
lea edx, [esp + 0x24]
test cl, cl
cmovs ecx, dword [esp + 0x28]
cmovs edx, dword [esp + 0x24]
push eax
push 1
push ecx
push edx
call fcn.005a9764
add esp, 0x10
push 2
call fcn.00595aaf
add esp, 4
push eax
call fcn.005a8790
add esp, 4
mov eax, dword [0x639220]
test al, 1
je 0x482af2
call fcn.004822a0
test al, al
je 0x482af2
movzx eax, byte [esp + 0x2f]
lea ecx, [esp + 0x24]
test al, al
cmovs eax, dword [esp + 0x28]
cmovs ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x44]
push edx
push eax
push ecx
push dword [0x63bdbc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 4], 3
jne 0x482b3f
mov ecx, dword [0x63bd98]
lea ebx, [esp + 0x24]
test ecx, ecx
je 0x482b20
movzx eax, byte [esp + 0x2f]
mov edx, ebx
test al, al
jns 0x482b19
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push edx
call fcn.0047eb40
cmp byte [ebx + 0xb], 0
mov dword [esp + 0x40], 0xbedead01
mov dword [esp + 0x444], 0x5050dead
jns 0x482b48
mov eax, dword [esp + 0x24]
jmp 0x482b4c
lea ebx, [esp + 0x24]
jmp 0x482c7f
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x400
push eax
push ecx
call fcn.004898c0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00413500
add esp, 4
mov ecx, dword [0x63e310]
mov edx, dword fs:[0x2c]
mov eax, dword [0x63bdd0]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x482de6
mov eax, dword [0x63bdc8]
cmp eax, dword [0x63bdcc]
je 0x482e8e
mov ecx, dword [0x63e310]
mov edx, dword fs:[0x2c]
mov eax, dword [0x63bdd0]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x482e3a
mov eax, dword [0x63bdcc]
mov ecx, dword [0x63bdc4]
mov dword [esp + 4], edi
test eax, eax
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x482e91
shl eax, 2
lea ecx, [esp + 0x1c]
add eax, dword [0x63bdc0]
push eax
call fcn.0047ac70
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x482c72
cmp byte [ebx + 0xb], 0
mov dword [esp], ebx
jns 0x482c06
mov ebx, dword [esp + 0x24]
jmp 0x482c0a
lea ebx, [esp + 0x24]
mov eax, dword [esp + 8]
test ebx, ebx
mov dword [esp + 0x10], ecx
lea eax, [ebx + eax]
mov dword [esp + 0xc], eax
je 0x482c28
push eax
call fcn.005ab290
add esp, 4
jmp 0x482c2a
xor eax, eax
mov ecx, dword [esi + 0x90]
mov edi, dword [esp + 8]
mov edx, dword [esi + 0x98]
add ebx, ecx
sub edi, ecx
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], ebx
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 + 0x20]
push eax
call dword [eax + 4]
add esp, 0x14
mov ebx, dword [esp]
lea ecx, [esp + 0x1c]
call fcn.0047ac50
mov edi, dword [esp + 4]
cmp byte [ebx + 0xb], 0
jns 0x482c91
push dword [esp + 0x24]
call fcn.005909b6
add esp, 4
lea ecx, [esi + 0xa0]
call fcn.004d13b0
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x5c1b94
mov dword [esi + 0xc], 0x5c1b60
cmp byte [esi + 0x37], 0
lea esi, [esi + 0x40]
jns 0x482cc5
push dword [edi + 0x24]
call fcn.005909b6
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00461e74
mov ecx, edi
call fcn.00413500
mov ecx, esi
call fcn.00461e6a
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.005909f1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esp + 0x2f]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], edi
test al, al
cmovs eax, dword [esp + 0x28]
cmovns ecx, ebx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push dword [esi + 0x90]
push eax
push ecx
call fcn.00487960
add esp, 0x10
push 0x18
call fcn.00590936
add esp, 4
mov edi, eax
mov ecx, eax
push dword [esi + 0x98]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esi + 0x94]
call fcn.004d1410
call fcn.0047a2f0
mov dword [esp], eax
lea eax, [esp + 0x38]
push eax
call fcn.004984d0
add esp, 4
mov word [esp + 0x40], 0x801
mov dword [esp + 0x44], str.message
mov dword [esp + 0x50], edi
push 0x8008
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push str.LogMessage
push 0x6395e0
push 0x49
call fcn.0049e480
add esp, 0x30
mov al, byte [esp + 0x40]
test al, al
je 0x482ddd
xor edi, edi
jmp 0x482dc1
inc edi
movzx ecx, al
cmp edi, ecx
jae 0x482ddd
cmp byte [esp + edi + 0x41], 8
jne 0x482db9
mov ecx, dword [esp + edi*8 + 0x50]
test ecx, ecx
je 0x482db9
mov eax, dword [ecx]
push 1
call dword [eax]
movzx eax, byte [esp + 0x40]
jmp 0x482db9
mov edi, dword [esp + 4]
jmp 0x482a10
push 0x63bdd0
call fcn.00590a37
add esp, 4
cmp dword [0x63bdd0], 0xffffffff
jne 0x482b8d
mov dword [0x63bdc4], 0
mov dword [0x63bdc0], 0
mov dword [0x63bdcc], 0
mov dword [0x63bdc8], 0
push 0x63bdd0
call fcn.00590aad
add esp, 4
jmp 0x482b8d
push 0x63bdd0
call fcn.00590a37
add esp, 4
cmp dword [0x63bdd0], 0xffffffff
jne 0x482bbf
mov dword [0x63bdc4], 0
mov dword [0x63bdc0], 0
mov dword [0x63bdcc], 0
mov dword [0x63bdc8], 0
push 0x63bdd0
call fcn.00590aad
add esp, 4
jmp 0x482bbf
int3
int3