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

Disassembly:
push 0xffffffffffffffff
push 0x4ad870
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push edi
mov eax, dword [0x4e3a40]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, esi
call fcn.00795318
mov eax, dword [0x4e901c]
test eax, eax
mov ebx, dword [fcn.004b4140]
jne 0x7f130a
push 0xd
call ebx
mov ebp, dword [fcn.004b4144]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
push eax
push ecx
call dword [int.004b46ec]
push 1
push esi
call dword [0x4b4128]
push 0
push esi
call dword [0x4b4124]
mov eax, dword [esp + 0x50]
sub eax, 0x14
push 0x16
mov dword [esp + 0x54], eax
sub eax, dword [esp + 0x4c]
lea edx, [esp + 0x3c]
push eax
push 0
push 0xa
push edx
call dword [int.004b46e4]
call fcn.007f9145
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x7f1374
push 0x80004005
call fcn.00792ac8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x824
mov dword [esp + 0x64], 0
mov eax, dword [edi + 0x78]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
push esi
call dword [0x4b470c]
mov eax, dword [0x4e9018]
test eax, eax
jne 0x7f13b2
push 0xd
call ebx
push eax
push esi
call ebp
lea eax, [esp + 0x20]
push eax
xor ebp, ebp
push esi
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x28], ebp
call fcn.008379ba
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x60], 1
jmp 0x7f13e8
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x7f15f0
mov eax, dword [edi + 0x6c]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x7f15f0
cmp ebp, 4
jge 0x7f15f0
mov ebx, 0x4cbd80
call fcn.007d58a8
push 0
push esi
mov dword [esp + 0x24], eax
call dword [0x4b4124]
mov eax, dword [esp + 0x18]
lea ebx, [eax + 0x14]
push ebx
push 0x37
push eax
push 0
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x38], ebx
call dword [int.004b46e4]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x7f1452
mov ecx, dword [edi + 0x6c]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x7f1457
call fcn.0081e954
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
mov ecx, dword [edi + 0x68]
test ecx, ecx
mov eax, dword [edx - 0xc]
mov dword [esp + 0x28], eax
je 0x7f1479
mov eax, dword [edi + 0x6c]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x7f147e
call fcn.0081e954
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x28]
push 0x826
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [eax + ebp*4]
push edx
mov edx, dword [ecx]
push edx
push esi
call dword [0x4b470c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
push ebx
push eax
push ecx
push 0x5f
lea edx, [esp + 0x48]
push edx
call dword [int.004b46e4]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x7f14c8
mov ecx, dword [edi + 0x6c]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x7f14cd
call fcn.0081e954
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x68]
test ecx, ecx
mov eax, dword [edx - 0xc]
mov dword [esp + 0x28], eax
je 0x7f14f0
mov eax, dword [edi + 0x6c]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x7f14f5
call fcn.0081e954
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x28]
push 0x824
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [eax + ebp*4]
push edx
mov edx, dword [ecx + 4]
push edx
push esi
call dword [0x4b470c]
lea eax, [edi + 0x7c]
push eax
lea ecx, [esp + 0x18]
call fcn.00792d38
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x7f1535
mov eax, dword [edi + 0x6c]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x7f153a
call fcn.0081e954
mov ecx, dword [edi + 0x68]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 8]
sub eax, 1
je 0x7f1564
sub eax, 1
jne 0x7f1586
mov ebx, 0x4cbdd8
call fcn.007d58a8
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x84]
push eax
jmp 0x7f1579
mov ebx, 0x4cbdac
call fcn.007d58a8
lea ecx, [edi + 0x80]
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00792d38
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
lea edx, [ebx - 1]
push edx
push eax
push ecx
add eax, 0xffffffd2
push eax
lea edx, [esp + 0x48]
push edx
call dword [int.004b46e4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00794b28
add esp, 0xc
push 0xffffff
push esi
call dword [0x4b4124]
push 0x825
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
call dword [0x4b470c]
mov dword [esp + 0x18], ebx
add ebp, 1
jmp 0x7f13e8
mov edx, dword [esp + 0x2c]
push edx
push esi
call dword [fcn.004b4144]
mov eax, dword [esp + 0x30]
push eax
call fcn.008379c0
mov dword [esp + 0x60], reloc.MSVCRT.dll_strncpy
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7f162e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x54
ret