Function at 0x412281
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x30], edi
mov dword [ebp - 0xc], edi
je 0x41229f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
and byte [ebp - 1], 0
cmp dword [esi + 0x48], edi
je 0x412318
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4122bd
mov ecx, dword [ebp - 0xc]
sub ecx, dword [esi + 0x34]
cmp ecx, eax
jb 0x4124df
lea edx, [esi + 0x18]
lea ecx, [esi + 0x80]
call fcn.00402fe5
test al, al
je 0x412318
lea edx, [esi + 0x24]
lea ecx, [esi + 0x8c]
call fcn.00403929
test al, al
je 0x412318
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x10]
jne 0x412318
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0x14]
jne 0x412318
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 8]
jne 0x412314
mov eax, dword [esi + 0x74]
cmp eax, dword [esi + 0xc]
jne 0x412314
mov eax, dword [esi + 0x68]
cmp eax, dword [esi]
jne 0x412314
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 4]
je 0x4124df
mov byte [ebp - 1], 1
mov eax, dword [esi + 0x38]
lea ebx, [esi + 0x38]
mov ecx, esi
mov dword [ebx + 4], edi
and byte [eax], 0
call fcn.004121da
cmp byte [ebp - 1], 0
je 0x412346
lea edx, [esi + 0x98]
mov ecx, ebx
call fcn.00402fe5
test al, al
jne 0x4124df
push ebx
lea ecx, [esi + 0x98]
call fcn.00402e5a
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ecx, eax
or ecx, edx
je 0x41237a
push edx
lea ecx, [ebp - 0x30]
push eax
call fcn.0040289c
mov ecx, ebx
call fcn.00402eab
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.00402ee6
cmp dword [esi + 0x1c], edi
je 0x412391
mov ecx, ebx
call fcn.00402eab
lea eax, [esi + 0x18]
mov ecx, ebx
push eax
call fcn.00402f28
cmp dword [esi + 0x28], edi
je 0x412482
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0xac]
jae 0x412482
mov ecx, ebx
call fcn.00402eab
lea eax, [esi + 0x24]
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
call fcn.00403451
mov ecx, dword [esi + 0xa4]
push edi
call fcn.00403ca2
mov ecx, dword [esi + 0xa4]
lea eax, [esi + 0x50]
push eax
push edi
call fcn.00403c3b
mov eax, dword [esi + 0x54]
add eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0xac]
jbe 0x412475
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [ebp - 8], eax
je 0x41246b
mov eax, dword [ebp - 8]
shr eax, 3
jne 0x412401
push 1
pop eax
sub dword [ebp - 8], eax
lea eax, [esi + 0x24]
push eax
mov ecx, edi
call fcn.00403451
mov ecx, dword [esi + 0x60]
mov eax, dword [ebp - 8]
sub ecx, dword [ebp - 8]
shr eax, 1
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.0040394a
push 0x42af34
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0040382e
mov ecx, dword [esi + 0xa4]
push edi
call fcn.00403ca2
mov ecx, dword [esi + 0xa4]
lea eax, [esi + 0x50]
push eax
push edi
call fcn.00403c3b
mov eax, dword [esi + 0x54]
add eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0xac]
jbe 0x412465
cmp dword [ebp - 8], 0
jne 0x4123f6
cmp dword [ebp - 8], 0
jne 0x412475
mov eax, dword [esi + 0x50]
and dword [esi + 0x54], 0
and byte [eax], 0
lea eax, [esi + 0x50]
mov ecx, ebx
push eax
call fcn.00402f28
xor edi, edi
lea ecx, [esi + 0x44]
mov edx, ebx
call fcn.004124e4
test al, al
je 0x4124cb
push edi
mov ecx, esi
call fcn.00412147
mov eax, dword [esi + 0xa4]
lea edi, [esi + 0xa4]
push dword [eax]
push dword [ebx]
call dword [sym.imp.MSVCRT.dll_fputs]
cmp byte [esi + 0xa8], 0
pop ecx
pop ecx
je 0x4124c0
mov ecx, dword [edi]
call fcn.00403b99
push ebx
lea ecx, [esi + 0x44]
call fcn.00402e5a
xor edi, edi
push esi
lea ecx, [esi + 0x68]
call fcn.00412502
cmp dword [esi + 0x30], edi
je 0x4124df
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
pop edi
pop esi
pop ebx
leave
ret