Function at 0x41254a
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x45e018
call fcn.0045dac0
sub esp, 0x17c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp eax, edi
mov dword [ebp - 0x3c], ebx
jne 0x412572
xor eax, eax
jmp 0x412caa
mov ecx, ebx
mov dword [ebx + 4], eax
call fcn.0042aa52
mov eax, dword [0x40a0f8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
cmp dword [ebx + 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], edi
jle 0x412954
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [eax + ecx*4]
lea ecx, [ebp - 0x1c]
call fcn.0043537a
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4125c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
jne 0x4125d3
push 0x80004003
call fcn.0045d806
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
cmp dword [ebp - 0x10], edi
mov word [ebp - 0x84], 3
jne 0x4125f8
push 0x80004003
call fcn.0045d806
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
jle 0x412923
jmp 0x412615
xor edi, edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], eax
mov dword [ebp + 8], edi
cmp dword [ebp - 0x10], edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], edi
jne 0x412634
push 0x80004003
call fcn.0045d806
lea edx, [ebp - 0x20]
lea esi, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x10]
sub esp, 0x10
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x84]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x20]
lea ecx, [ebp + 8]
push eax
call fcn.00414479
test eax, eax
jge 0x41267c
cmp eax, 0x80004002
je 0x41267c
push eax
call fcn.0045d806
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x4128f3
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [ecx + 0x38]
cmp dword [ebx + 0x20], esi
jne 0x4127fe
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x40a234
push dword [ebp - 0x30]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x412804
cmp dword [ebp + 8], esi
mov esi, 0x80004003
jne 0x4126c6
push esi
call fcn.0045d806
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x4c]
push edx
push 0
mov ecx, dword [eax]
push 0x40a228
push eax
call dword [ecx + 0x20]
cmp dword [ebp + 8], 0
jne 0x4126e6
push esi
call fcn.0045d806
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x64]
push edx
push 0
mov ecx, dword [eax]
push 0x40a21c
push eax
call dword [ecx + 0x20]
cmp dword [ebp + 8], 0
jne 0x412706
push esi
call fcn.0045d806
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x74]
push edx
push 0
mov ecx, dword [eax]
push 0x40a210
push eax
call dword [ecx + 0x20]
cmp word [ebp - 0x4c], 8
jne 0x4128df
cmp dword [ebp - 0x44], 0
je 0x4128df
mov esi, 0x45fc38
mov eax, esi
test eax, eax
je 0x412741
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00414587
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00411e92
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x24]
call fcn.00411e92
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40a204
push dword [ebp - 0x28]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4128cd
push 0x40a1fc
push dword [ebp - 0x28]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4128cd
push 0x40a1f0
push dword [ebp - 0x6c]
call edi
pop ecx
test eax, eax
pop ecx
je 0x4127bd
cmp dword [ebx + 0x24], 0
je 0x4128cd
push 0x40a1dc
push dword [ebp - 0x6c]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4128cd
push 0x40a1dc
push dword [ebp - 0x6c]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4127e9
mov esi, 0x40a1d4
mov eax, esi
test eax, eax
je 0x4127df
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00414689
mov eax, dword [ebx + 0x34]
lea ecx, [ebx + 0x2c]
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.00414160
jmp 0x4128cd
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x40a1c0
push dword [ebp - 0x30]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4128df
cmp dword [ebp + 8], esi
mov esi, 0x80004003
jne 0x412828
push esi
call fcn.0045d806
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x4c]
xor edi, edi
push edx
mov ecx, dword [eax]
push edi
push 0x40a228
push eax
call dword [ecx + 0x20]
cmp dword [ebp + 8], edi
jne 0x412848
push esi
call fcn.0045d806
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x64]
push edx
push edi
mov ecx, dword [eax]
push 0x40a21c
push eax
call dword [ecx + 0x20]
cmp dword [ebp + 8], edi
jne 0x412866
push esi
call fcn.0045d806
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x74]
push edx
push edi
mov ecx, dword [eax]
push 0x40a210
push eax
call dword [ecx + 0x20]
cmp word [ebp - 0x4c], 8
jne 0x4128df
cmp dword [ebp - 0x44], 0
je 0x4128df
mov esi, 0x45fc38
mov eax, esi
test eax, eax
je 0x412898
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00414587
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00411e92
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x24]
call fcn.00411e92
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x28]
lea ecx, [ebx + 0x2c]
push eax
call fcn.004140f2
push dword [ebp - 0x44]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x5c]
call esi
jmp 0x4128e5
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x30], 0
je 0x4128f0
push dword [ebp - 0x30]
call esi
mov eax, dword [ebp + 8]
test eax, eax
mov byte [ebp - 4], 3
je 0x412901
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test eax, eax
je 0x412912
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jl 0x412613
xor edi, edi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x412934
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
and byte [ebp - 4], 0
cmp eax, edi
je 0x412945
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0x18]
jl 0x412599
mov eax, dword [ebx + 0x30]
mov dword [ebp + 8], edi
cmp eax, edi
je 0x41296b
mov esi, dword [ebx + 0x34]
sub esi, eax
sar esi, 3
mov dword [ebp - 0x1c], esi
jne 0x412977
mov dword [ebp - 4], 5
jmp 0x412c94
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
mov dword [ebp - 0x14], edi
call fcn.0041333b
push 1
lea eax, [ebp - 0x14]
push dword [ebp - 0x38]
mov byte [ebp - 4], 6
push eax
call fcn.00439ad8
add esp, 0xc
cmp dword [ebp - 0x14], edi
jne 0x4129b9
push 2
lea eax, [ebp - 0x14]
push dword [ebp - 0x38]
push eax
call fcn.00439ad8
add esp, 0xc
cmp dword [ebp - 0x14], edi
je 0x412c7e
mov ecx, ebx
call fcn.0041317a
cmp dword [ebp + 0xc], edi
je 0x4129e6
mov esi, 0x40a1b4
mov eax, esi
test eax, eax
je 0x4129d7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebx + 0x40]
call fcn.00414587
mov esi, dword [ebp - 0x1c]
jmp 0x4129ed
mov ecx, ebx
call fcn.00413216
push dword [ebx + 0x40]
push dword [ebp - 0x14]
call fcn.004134ff
cmp dword [ebp + 0xc], edi
pop ecx
pop ecx
jne 0x412a17
mov eax, dword [ebx + 0x48]
mov ebx, dword [ebx + 0x40]
push eax
push 0x40a1a8
push ebx
push dword [ebp - 0x14]
call fcn.0043a1fa
add esp, 0x10
mov eax, dword [0x40a0f8]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
cmp esi, edi
mov byte [ebp - 4], 8
mov dword [ebp - 0x18], edi
jbe 0x412c54
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
lea ebx, [eax + ecx*8]
test ebx, ebx
je 0x412c45
mov eax, dword [ebx + 4]
mov eax, dword [eax - 8]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x412c45
lea esi, [eax + 7]
shr esi, 3
shl esi, 3
lea edi, [esi + 1]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp + 8], eax
je 0x412c45
mov ecx, edi
mov edi, dword [ebp + 8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
push 9
and ecx, 3
push 0x40a19c
push dword [ebp + 0xc]
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
push eax
push dword [ebp + 8]
call fcn.0045c5b0
mov edi, esi
shl edi, 2
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x1c
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x412ac5
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x412c44
mov ecx, edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
push dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp + 0xc]
call fcn.00433650
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x400
jae 0x412b24
mov eax, dword [ebp - 0x3c]
push dword [ebp + 0xc]
mov ebx, dword [ebx]
mov eax, dword [eax + 0x40]
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0043a1fa
add esp, 0x10
jmp 0x412c3c
mov eax, dword [0x40a0f8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
and byte [ebp - 0x188], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x187]
push 0x40a190
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x188]
push 0x103
push eax
mov byte [ebp - 4], 0xa
push dword [0x534a50]
call fcn.00426466
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
mov esi, 0x40a184
push dword [ebp + 8]
cmp dword [edi + 0x20], 0
lea eax, [ebp - 0x188]
push eax
je 0x412b91
push 0x40a178
jmp 0x412b92
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.00414a85
add esp, 0x10
push 0
push dword [ebp - 0x10]
call fcn.0042653d
pop ecx
test eax, eax
pop ecx
je 0x412bb3
inc dword [ebp + 8]
jmp 0x412b7a
push 0x40a174
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 0x34], eax
test eax, eax
pop ecx
je 0x412be5
push dword [ebp + 0xc]
push 0x40a158
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
push dword [ebp - 0x34]
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
mov eax, dword [0x40a0f8]
mov dword [ebp - 0x20], eax
push dword [ebp + 8]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xb
push 0x40a168
push esi
push eax
call fcn.00414a85
push dword [ebp - 0x20]
mov ebx, dword [ebx]
mov eax, dword [edi + 0x40]
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0043a1fa
add esp, 0x20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00411e66
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00411e66
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00411e66
push dword [ebp + 0xc]
call fcn.0045da7b
pop ecx
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x412a31
push 1
pop eax
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00439d96
pop ecx
mov byte [ebp - 4], 7
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00411e66
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00411e66
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00411e66
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
call fcn.00411e66
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411e66
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8