Function at 0x41214a
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x45d518
call fcn.0045cfc0
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 0x412172
xor eax, eax
jmp 0x4128aa
mov ecx, ebx
mov dword [ebx + 4], eax
call fcn.0042a47b
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 0x412554
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.004140d9
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4121c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
jne 0x4121d3
push 0x80004003
call fcn.0045cd00
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 0x4121f8
push 0x80004003
call fcn.0045cd00
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 0x412523
jmp 0x412215
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 0x412234
push 0x80004003
call fcn.0045cd00
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.00414079
test eax, eax
jge 0x41227c
cmp eax, 0x80004002
je 0x41227c
push eax
call fcn.0045cd00
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x4124f3
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [ecx + 0x38]
cmp dword [ebx + 0x20], esi
jne 0x4123fe
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x40a234
push dword [ebp - 0x30]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x412404
cmp dword [ebp + 8], esi
mov esi, 0x80004003
jne 0x4122c6
push esi
call fcn.0045cd00
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 0x4122e6
push esi
call fcn.0045cd00
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 0x412306
push esi
call fcn.0045cd00
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 0x4124df
cmp dword [ebp - 0x44], 0
je 0x4124df
mov esi, 0x45f128
mov eax, esi
test eax, eax
je 0x412341
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004141b2
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00411a92
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x24]
call fcn.00411a92
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40a204
push dword [ebp - 0x28]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4124cd
push 0x40a1fc
push dword [ebp - 0x28]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4124cd
push 0x40a1f0
push dword [ebp - 0x6c]
call edi
pop ecx
test eax, eax
pop ecx
je 0x4123bd
cmp dword [ebx + 0x24], 0
je 0x4124cd
push 0x40a1dc
push dword [ebp - 0x6c]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4124cd
push 0x40a1dc
push dword [ebp - 0x6c]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4123e9
mov esi, 0x40a1d4
mov eax, esi
test eax, eax
je 0x4123df
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.004142b4
mov eax, dword [ebx + 0x34]
lea ecx, [ebx + 0x2c]
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.00413d60
jmp 0x4124cd
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x40a1c0
push dword [ebp - 0x30]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4124df
cmp dword [ebp + 8], esi
mov esi, 0x80004003
jne 0x412428
push esi
call fcn.0045cd00
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 0x412448
push esi
call fcn.0045cd00
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 0x412466
push esi
call fcn.0045cd00
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 0x4124df
cmp dword [ebp - 0x44], 0
je 0x4124df
mov esi, 0x45f128
mov eax, esi
test eax, eax
je 0x412498
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004141b2
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00411a92
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x24]
call fcn.00411a92
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x28]
lea ecx, [ebx + 0x2c]
push eax
call fcn.00413cf2
push dword [ebp - 0x44]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x5c]
call esi
jmp 0x4124e5
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x30], 0
je 0x4124f0
push dword [ebp - 0x30]
call esi
mov eax, dword [ebp + 8]
test eax, eax
mov byte [ebp - 4], 3
je 0x412501
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test eax, eax
je 0x412512
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 0x412213
xor edi, edi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x412534
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
and byte [ebp - 4], 0
cmp eax, edi
je 0x412545
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 0x412199
mov eax, dword [ebx + 0x30]
mov dword [ebp + 8], edi
cmp eax, edi
je 0x41256b
mov esi, dword [ebx + 0x34]
sub esi, eax
sar esi, 3
mov dword [ebp - 0x1c], esi
jne 0x412577
mov dword [ebp - 4], 5
jmp 0x412894
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
mov dword [ebp - 0x14], edi
call fcn.00412f3b
push 1
lea eax, [ebp - 0x14]
push dword [ebp - 0x38]
mov byte [ebp - 4], 6
push eax
call fcn.00439298
add esp, 0xc
cmp dword [ebp - 0x14], edi
jne 0x4125b9
push 2
lea eax, [ebp - 0x14]
push dword [ebp - 0x38]
push eax
call fcn.00439298
add esp, 0xc
cmp dword [ebp - 0x14], edi
je 0x41287e
mov ecx, ebx
call fcn.00412d7a
cmp dword [ebp + 0xc], edi
je 0x4125e6
mov esi, 0x40a1b4
mov eax, esi
test eax, eax
je 0x4125d7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebx + 0x40]
call fcn.004141b2
mov esi, dword [ebp - 0x1c]
jmp 0x4125ed
mov ecx, ebx
call fcn.00412e16
push dword [ebx + 0x40]
push dword [ebp - 0x14]
call fcn.004130ff
cmp dword [ebp + 0xc], edi
pop ecx
pop ecx
jne 0x412617
mov eax, dword [ebx + 0x48]
mov ebx, dword [ebx + 0x40]
push eax
push 0x40a1a8
push ebx
push dword [ebp - 0x14]
call fcn.004399ba
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 0x412854
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
lea ebx, [eax + ecx*8]
test ebx, ebx
je 0x412845
mov eax, dword [ebx + 4]
mov eax, dword [eax - 8]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x412845
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 0x412845
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.0045bab0
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 0x4126c5
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x412844
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.00432ea0
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 0x412724
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.004399ba
add esp, 0x10
jmp 0x41283c
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 [0x532da0]
call fcn.00425ffa
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 0x412791
push 0x40a178
jmp 0x412792
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.004146b0
add esp, 0x10
push 0
push dword [ebp - 0x10]
call fcn.004260d1
pop ecx
test eax, eax
pop ecx
je 0x4127b3
inc dword [ebp + 8]
jmp 0x41277a
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 0x4127e5
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.004146b0
push dword [ebp - 0x20]
mov ebx, dword [ebx]
mov eax, dword [edi + 0x40]
push ebx
push eax
push dword [ebp - 0x14]
call fcn.004399ba
add esp, 0x20
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00411a66
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00411a66
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00411a66
push dword [ebp + 0xc]
call fcn.0045cf75
pop ecx
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x412631
push 1
pop eax
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00439556
pop ecx
mov byte [ebp - 4], 7
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00411a66
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00411a66
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00411a66
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
call fcn.00411a66
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411a66
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8