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

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x24]
push ebx
push ebp
push esi
movzx eax, byte [edx - 3]
mov esi, dword [esp + 0x2c]
push edi
mov edi, 0xef
mov dword [esp + 0x18], 0x80
movzx ebp, word [eax*2 + str.o__f]
mov eax, 0x80
dec dword [esi + 0x78]
movzx ecx, word [edx]
mov dword [esp + 0x14], eax
mov eax, 0x8000
mov dword [esp + 0x10], ebp
cmp word [edx + 2], ax
jae 0x10125785
push edi
push ecx
push esi
call fcn.10126a90
add esp, 0xc
mov ebx, eax
jmp 0x101257e5
mov eax, dword [esi + 0x48]
movzx ebx, byte [eax + ecx*8 + 6]
test bl, bl
jns 0x101257a6
push 0xef
push ecx
push esi
call fcn.1012dd40
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ebx, eax
mov eax, dword [esi + 0x60]
btr edi, ebx
btr eax, ebx
mov dword [esi + 0x60], eax
movzx eax, word [edx + 2]
push edi
push eax
push esi
call fcn.10126a90
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 0x10
jne 0x101257e2
mov cl, byte [esi + 0x54]
cmp cl, 0x80
je 0x101257d8
movzx ecx, cl
btr edi, ecx
mov al, byte [esi + 0x55]
cmp al, 0x80
je 0x101257e5
movzx eax, al
btr edi, eax
mov eax, dword [esi + 0x50]
mov ecx, 0x8000
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
movzx edx, word [eax - 8]
cmp word [eax - 6], cx
jae 0x10125816
push edi
push edx
push esi
call fcn.10126a90
mov edi, eax
mov dword [esp + 0x3c], edi
jmp 0x1012585b
mov eax, dword [esi + 0x48]
movzx ecx, byte [eax + edx*8 + 6]
mov dword [esp + 0x30], ecx
test cl, cl
jns 0x10125837
push edi
push edx
push esi
call fcn.1012dd40
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 0x60]
btr edi, ecx
btr eax, ecx
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x34]
push edi
movzx eax, word [eax - 6]
push eax
push esi
call fcn.10126a90
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x40]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, ebp
shr eax, 4
mov dword [esi + 0xc8], 0
push eax
push esi
mov dword [esi + 0xc4], 0
mov dword [esp + 0x24], eax
call fcn.101278b0
mov eax, dword [esp + 0x1c]
add esp, 8
test al, al
jns 0x10125919
mov ebp, dword [esp + 0x34]
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0x30]
movzx ecx, word [ebp - 6]
mov ecx, dword [eax + ecx*8]
test ecx, ecx
jne 0x101258de
mov eax, dword [esp + 0x1c]
and al, 0xa
cmp al, 2
je 0x101258de
cmp edx, 0x10
je 0x101258de
mov ecx, dword [esi + 0x40]
and dl, 7
mov al, dl
shl dl, 3
sub al, 0x40
add al, dl
mov byte [ecx - 1], al
lea eax, [ecx - 2]
mov dword [ecx - 5], 0x850000fe
mov dword [esi + 0x40], eax
jmp 0x1012592d
mov edi, dword [esi + 0x40]
movsx eax, cl
cmp ecx, eax
jne 0x10125901
lea eax, [edi - 1]
push edx
mov dword [esi + 0x40], eax
mov byte [eax], cl
mov eax, 0x830000fe
push 7
push eax
push esi
call fcn.1012d1e0
jmp 0x1012592a
push edx
mov eax, 0x810000fe
mov dword [edi - 4], ecx
add dword [esi + 0x40], 0xfffffffc
push 7
push eax
push esi
call fcn.1012d1e0
jmp 0x1012592a
push eax
push edi
push 0x3b0000fe
push esi
call fcn.1012d1e0
mov ebp, dword [esp + 0x44]
add esp, 0x10
mov edx, dword [esp + 0x10]
mov ecx, edx
and ecx, 0xf
cmp ecx, 5
je 0x10125955
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x20]
sub dl, al
mov byte [eax - 2], 0x75
mov byte [eax - 1], dl
add eax, 0xfffffffe
mov edx, dword [esp + 0x10]
mov dword [esi + 0x40], eax
cmp ecx, 4
je 0x1012596d
mov eax, edx
shr eax, 8
push eax
push esi
call fcn.101278b0
mov edx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x18]
test al, al
jns 0x10125a16
movzx ecx, word [ebp + 2]
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + ecx*8]
test ecx, ecx
jne 0x101259c9
and dl, 0xa
cmp dl, 2
je 0x101259c9
cmp ebx, 0x10
je 0x101259c9
mov ecx, dword [esi + 0x40]
and bl, 7
mov al, bl
shl bl, 3
sub al, 0x40
add al, bl
mov byte [ecx - 1], al
lea eax, [ecx - 2]
pop edi
mov dword [ecx - 5], 0x850000fe
mov dword [esi + 0x40], eax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esi + 0x40]
movsx eax, cl
cmp ecx, eax
jne 0x101259f5
lea eax, [edx - 1]
mov dword [esi + 0x40], eax
push ebx
mov byte [eax], cl
mov eax, 0x830000fe
push 7
push eax
push esi
call fcn.1012d1e0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
mov eax, 0x810000fe
mov dword [edx - 4], ecx
add dword [esi + 0x40], 0xfffffffc
push 7
push eax
push esi
call fcn.1012d1e0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push eax
push ebx
push 0x3b0000fe
push esi
call fcn.1012d1e0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret