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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
push ebx
mov ebx, dword [edx]
mov eax, 0xfffffffe
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x74]
push ebp
mov ebp, dword [esp + 0x94]
xor edx, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x14], eax
lea eax, [ecx + 6]
push esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xc], eax
cmp byte [ebx], 0x7f
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
jne 0x10125862
movzx eax, byte [ebx + 3]
movzx esi, byte [ebx + 4]
shl eax, 8
or eax, esi
mov dword [esp + 0x44], eax
mov word [esp + 0x58], ax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x54], eax
xor eax, eax
mov word [esp + 0x5a], ax
lea eax, [esp + 0x54]
mov dword [ebp + 0x20], eax
mov esi, dword [esp + 0xa0]
lea eax, [ebx + 1]
mov byte [eax], dl
mov dword [esp + 0x4c], eax
lea eax, [ebx + 2]
neg esi
mov byte [eax], dl
mov edi, dword [ebp + 0x38]
lea ebx, [ebx + ecx + 3]
sbb esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], edi
and esi, ecx
mov dword [esp + 0x9c], ebx
cmp dword [esp + 0x7c], edx
je 0x101258a8
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x38], eax
cmp dword [esp + 0x78], edx
je 0x101258cc
mov byte [ebx], 0x76
inc ebx
mov byte [ebx], 0
mov byte [ebx + 1], 0
mov dword [esp + 0x40], ebx
add ebx, 2
add dword [esp + 0x10], 3
mov dword [esp + 0x9c], ebx
mov ecx, dword [esp + 0x84]
push esi
push ebp
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0x8c]
push edx
lea edx, [esp + 0x64]
call fcn.101219d0
add esp, 0x28
test eax, eax
je 0x10125ab1
mov eax, dword [ebp + 0x38]
cmp eax, edi
jbe 0x10125925
mov dword [esp + 0x34], eax
cmp dword [esp + 0xa0], 0
mov ebx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x14]
jne 0x10125a45
cmp byte [ecx], 0x71
je 0x1012596b
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x98], edx
jmp 0x101259f4
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
test edi, edi
jl 0x101259aa
cmp edi, eax
jne 0x10125985
cmp dword [esp + 0x28], edx
je 0x101259bd
cmp dword [esp + 0x98], 0
jge 0x101259a2
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x98], edi
mov dword [esp + 0x1c], 0xffffffff
test eax, eax
jl 0x101259bd
cmp dword [esp + 0x24], 0
jge 0x101259bd
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov edx, eax
xor edx, dword [esp + 0x98]
test edx, 0xfffffffd
jne 0x101259e9
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x20], edx
jne 0x101259e9
or dword [esp + 0x98], eax
mov dword [esp + 0x20], edx
jmp 0x101259f4
mov dword [esp + 0x98], 0xffffffff
cmp dword [esp + 0x78], 0
je 0x10125a45
mov eax, dword [esp + 0x68]
push ebp
shr eax, 0xb
push 0
and eax, 1
push eax
push ecx
mov byte [ebx], 0
call fcn.1011fb30
add esp, 0x10
cmp eax, 0xfffffffd
jne 0x10125a23
mov dword [ebp + 0x64], 1
jmp 0x10125a41
test eax, eax
jl 0x10125ac5
cmp eax, dword [ebp + 0x40]
jle 0x10125a33
mov dword [ebp + 0x40], eax
mov edi, dword [esp + 0x40]
mov ecx, eax
sar ecx, 8
mov byte [edi], cl
mov byte [edi + 1], al
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0x7c
jne 0x10125b10
cmp dword [esp + 0xa0], 0
je 0x10125a82
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x80]
add dword [esp + 0x10], 3
inc edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x34]
lea ebx, [eax + ecx + 3]
xor edx, edx
jmp 0x10125894
mov edx, ebx
sub edx, ecx
mov byte [ebx], 0x71
mov al, bl
sar edx, 8
mov byte [ebx + 1], dl
sub al, cl
inc edi
mov byte [ebx + 2], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x60], ebx
add ebx, 3
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x34]
xor edx, edx
jmp 0x10125894
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
xor eax, eax
pop ebx
add esp, 0x54
ret
cmp eax, 0xfffffffe
jne 0x10125ae9
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
pop edi
mov eax, 0x24
mov dword [ecx], eax
mov eax, dword [esp + 0x6c]
pop esi
pop ebp
mov dword [eax], edx
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
sub eax, 0xfffffffc
neg eax
sbb eax, eax
and eax, 0xffffffd3
add eax, 0x46
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 0x6c]
pop esi
pop ebp
mov dword [eax], edx
xor eax, eax
pop ebx
add esp, 0x54
ret
mov esi, dword [esp + 0xa0]
test esi, esi
jne 0x10125b47
mov eax, ebx
sub eax, ecx
nop
movzx esi, byte [ecx + 1]
movzx edx, byte [ecx + 2]
shl esi, 8
or esi, edx
mov edx, eax
sar edx, 8
mov byte [ecx + 2], al
mov byte [ecx + 1], dl
sub ecx, esi
mov eax, esi
test esi, esi
jg 0x10125b20
mov esi, dword [esp + 0xa0]
mov eax, dword [esp + 0x30]
mov ecx, ebx
sub ecx, eax
mov dl, bl
mov byte [ebx], 0x72
sar ecx, 8
sub dl, al
mov byte [ebx + 1], cl
mov byte [ebx + 2], dl
add ebx, 3
cmp dword [esp + 0x44], 0
jle 0x10125bc1
mov ecx, dword [ebp + 0x20]
cmp word [ecx + 6], 0
je 0x10125bb9
mov edx, ebx
sub edx, eax
push edx
push eax
add eax, 3
push eax
call fcn.100d8610
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
add ebx, 3
mov byte [ecx], 0x7b
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x58]
sar eax, 8
mov byte [ecx], al
mov cl, bl
sub cl, byte [esp + 0x3c]
add esp, 0xc
mov byte [edx], cl
mov byte [ebx], 0x72
mov byte [ebx + 1], al
mov byte [ebx + 2], cl
add ebx, 3
add dword [esp + 0x10], 6
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov dword [ebp + 0x20], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [ebp + 0x38], edx
mov edx, dword [esp + 0x88]
mov dword [eax], ebx
mov eax, dword [esp + 0x28]
mov dword [ecx], edi
mov ecx, dword [esp + 0x8c]
mov dword [edx], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x90]
mov dword [ecx], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x94]
mov dword [eax], ecx
mov eax, dword [esp + 0x98]
mov dword [edx], eax
test esi, esi
je 0x10125c38
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
mov edx, 0x7fffffeb
sub edx, eax
cmp edx, ecx
jge 0x10125c34
mov eax, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x54
ret
add eax, ecx
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret