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

Disassembly:
push 0xffffffffffffffff
push 0x746fdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push esi
mov esi, ecx
mov dword [esp + 0x34], esi
lea ecx, [esi + 0x194]
call fcn.0051e4a0
lea ecx, [esi + 0x1a4]
call fcn.0051e4a0
mov eax, dword [0x93c92c]
test eax, eax
je 0x51b461
push ebx
lea eax, [esp + 0x17]
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.006b8ea0
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x194], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7c4d88
lea ecx, [esp + 0x28]
call fcn.004047b0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [0x93c92c]
mov ebx, 1
add ecx, 0x18
mov dword [esp + 0x194], ebx
mov dword [esp + 0x34], ecx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
cmp eax, edx
je 0x51b40a
push ebp
lea ecx, [eax + 0x10]
test ecx, ecx
je 0x51b3ee
mov eax, dword [ecx]
xor edx, edx
mov edi, 0x64
div edi
test edx, edx
mov dword [esp + 0x14], edx
je 0x51b3ee
mov eax, 0x51eb851f
lea ebp, [esi + 0x194]
mul dword [ecx]
shr edx, 5
mov dword [esp + 0x10], edx
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebp
call fcn.0051e540
mov eax, dword [esi + 0x198]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x51b2eb
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
push ecx
push 0x7a497c
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x9c]
mov dword [esp + 0x40], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004047b0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
lea eax, [esp + 0x68]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x1c], eax
call fcn.004257d0
mov edx, dword [esp + 0x34]
mov byte [esp + 0x198], 2
mov dword [esp + 0x78], edx
lea eax, [esp + 0x64]
lea ecx, [esp + 0x88]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x1a0], 4
call fcn.0051e260
lea edx, [esp + 0x68]
mov byte [esp + 0x198], bl
mov dword [esp + 0x18], edx
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19c], bl
call fcn.00404760
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esi + 0x1a4]
call fcn.0051e540
mov eax, dword [esi + 0x1a8]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x51b3ee
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x90]
push edx
push 0x7a4964
push eax
call dword [sym.imp.user32.dll_wsprintfA]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0x9c]
mov dword [esp + 0x40], ecx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00401450
test al, al
je 0x51b380
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00404970
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x24]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], eax
call fcn.004257d0
mov eax, dword [esp + 0x34]
mov byte [esp + 0x198], 7
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x80]
push ecx
push edx
lea ecx, [esi + 0x1a4]
mov byte [esp + 0x1a0], 9
call fcn.0051e260
lea eax, [esp + 0x4c]
mov byte [esp + 0x198], bl
mov dword [esp + 0x18], eax
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x19c], bl
call fcn.00404760
lea ecx, [esp + 0x20]
call fcn.0051ed90
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx]
cmp eax, ecx
jne 0x51b1e2
pop ebp
push 0
mov ecx, esi
call fcn.0051b840
push 0
mov ecx, esi
call fcn.0051b9c0
mov ecx, dword [esp + 0x24]
pop edi
test ecx, ecx
mov dword [esp + 0x190], 0xffffffff
pop ebx
je 0x51b461
mov al, byte [ecx - 1]
test al, al
je 0x51b457
cmp al, 0xff
je 0x51b457
dec al
pop esi
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
add esp, 0x18c
ret
dec ecx
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x184]
pop esi
mov dword fs:[0], ecx
add esp, 0x18c
ret