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

Disassembly:
sub esp, 0x48
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x68]
push ebx
push ebp
mov eax, dword [edx + 0xc]
mov ebx, dword [edx + 0x14]
push esi
mov esi, dword [esp + 0x58]
mov ebp, dword [esi + 0x204]
push edi
mov edi, dword [edx + 0x18]
add edi, 3
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x1c]
lea edx, [esi + 0x204]
sar edi, 2
sub edi, dword [esp + 0x68]
mov dword [esp + 0x48], eax
mov eax, 1
shl eax, cl
cmp edi, eax
mov dword [esp + 0x10], edx
cmovge edi, eax
add ebx, 3
sar ebx, 2
xor ecx, ecx
sub ebx, dword [esp + 0x6c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
cmp ebx, 0x20
jge 0x10125f84
test ebx, ebx
jle 0x10126540
jmp 0x10125f8d
mov ebx, 0x20
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x68]
add eax, edi
mov dword [esp + 0x44], eax
nop word [eax + eax]
mov eax, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x78], ebx
mov byte [ecx], 0
mov ecx, dword [edx]
imul ecx, dword [esp + 0x68]
mov dword [esp + 0x38], 0x80
add ecx, eax
cmp dword [esp + 0x60], 0
mov eax, dword [esi + 0x1fc]
mov edi, dword [eax + ecx*4]
lea esi, [eax + ecx*4]
mov dword [esp + 0x18], esi
je 0x1012600b
movzx eax, byte [edi + 0x9f]
mov esi, dword [esp + 0x60]
and eax, 7
cmp dword [esi + eax*4 + 0x1a9c], 0
mov esi, dword [esp + 0x18]
je 0x1012600b
mov byte [esp + 0x64], 0
jmp 0x10126094
mov al, byte [edi + 0x9f]
mov ah, byte [edi + 0x89]
mov byte [esp + 0x64], ah
test al, al
js 0x10126025
cmp byte [edi + 0x14], 0
jle 0x10126094
cmp byte [edi + 0x88], 0
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
jne 0x10126094
mov edx, dword [edi]
mov dword [esp + 0x14], ebx
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
and esi, dword [esp + 0x68]
movzx eax, byte [edx + 0x10723100]
sar esi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, dword [esp + 0x24]
shl esi, cl
movzx ecx, byte [edx + 0x10723948]
mov edx, dword [esp + 0x2c]
sar eax, cl
add esi, edi
mov dword [esp + 0x10], edx
mov al, byte [eax + esi + 0x8a]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x64], al
cmp dword [esp + 0x68], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
je 0x1012621a
mov edx, dword [esp + 0x60]
lea eax, [ebp*4]
sub esi, eax
mov dword [esp + 0x18], esi
mov esi, dword [esi]
mov dword [esp + 0x40], esi
test edx, edx
je 0x101260e4
movzx eax, byte [esi + 0x9f]
and eax, 7
cmp dword [edx + eax*4 + 0x1a9c], 0
je 0x101260e4
mov byte [esp + 0x78], 0
jmp 0x10126174
mov al, byte [esi + 0x9f]
mov dl, byte [esi + 0x89]
mov byte [esp + 0x78], dl
test al, al
js 0x101260fe
cmp byte [esi + 0x14], 0
jle 0x10126174
cmp byte [esi + 0x88], 0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
jne 0x10126174
mov edx, dword [esi]
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x14], ebx
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
and esi, eax
movzx eax, byte [edx + 0x10723100]
sar esi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, dword [esp + 0x24]
shl esi, cl
movzx ecx, byte [edx + 0x10723948]
sar eax, cl
mov ecx, dword [esp + 0x18]
add esi, dword [ecx]
mov al, byte [eax + esi + 0x8a]
mov esi, dword [esp + 0x40]
mov byte [esp + 0x78], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x5c]
push edi
push 0
movzx eax, byte [eax + 0x10723130]
mov dword [esp + 0x40], eax
lea eax, [ecx + 0x26f0]
push 1
push eax
push ecx
call fcn.10127e00
mov dl, al
add esp, 0x14
test dl, dl
jne 0x101261bb
mov ecx, dword [esp + 0x5c]
push esi
push 0
push 1
lea eax, [ecx + 0x26f0]
push eax
push ecx
call fcn.10127e00
add esp, 0x14
mov dl, al
cmp esi, edi
jne 0x101261de
cmp byte [edi + 0x88], 0
je 0x101261de
mov al, byte [edi + 0x9f]
test al, al
js 0x101261d8
cmp byte [edi + 0x14], 0
jle 0x101261de
mov dword [esp + 0x14], ebx
jmp 0x10126216
test dl, dl
je 0x10126216
movzx eax, byte [esp + 0x64]
mov esi, dword [esp + 0x70]
imul ecx, eax, 0x13
movzx eax, byte [esp + 0x78]
add ecx, eax
mov eax, dword [ecx*4 + 0x107241e0]
mov ecx, dword [esp + 0x5c]
mov byte [esi], al
add ecx, 0x26f0
movzx eax, dl
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov dword [esi + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
mov ecx, dword [esp + 0x74]
add eax, 0x10723130
mov edi, dword [esp + 0x68]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x10], edx
movzx esi, byte [eax]
mov al, byte [esp + 0x64]
cmp dword [esp + 0x38], esi
mov byte [ecx], al
mov ecx, dword [esp + 0x70]
cmovb esi, dword [esp + 0x38]
movzx eax, al
mov dword [esp + 0x18], esi
mov eax, dword [eax*4 + 0x10723400]
add edi, eax
mov dword [esp + 0x2c], edi
lea ecx, [ecx + eax*8]
add eax, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], eax
cmp edi, dword [esp + 0x44]
jae 0x10126472
lea eax, [ebp*4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
lea edx, [eax + 0x26f0]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
jmp 0x101262a4
mov eax, dword [esp + 0x5c]
mov byte [ecx], 0
mov esi, ebp
mov ecx, dword [edx]
mov eax, dword [eax + 0x1fc]
imul ecx, edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], ebx
add ecx, dword [esp + 0x24]
cmp dword [esp + 0x60], 0
lea edx, [eax + ecx*4]
mov edi, dword [edx]
mov dword [esp + 0x50], edx
je 0x101262f8
movzx eax, byte [edi + 0x9f]
mov esi, dword [esp + 0x60]
and eax, 7
cmp dword [esi + eax*4 + 0x1a9c], 0
mov esi, ebp
je 0x101262f8
mov byte [esp + 0x78], 0
jmp 0x1012637b
mov al, byte [edi + 0x9f]
mov dl, byte [edi + 0x89]
mov byte [esp + 0x78], dl
test al, al
js 0x10126312
cmp byte [edi + 0x14], 0
jle 0x10126377
cmp byte [edi + 0x88], 0
mov ebp, esi
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
jne 0x10126377
mov edx, dword [edi]
mov ebp, dword [esp + 0x14]
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
and esi, dword [esp + 0x2c]
movzx eax, byte [edx + 0x10723100]
sar esi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, dword [esp + 0x24]
shl esi, cl
movzx ecx, byte [edx + 0x10723948]
sar eax, cl
add esi, edi
mov al, byte [eax + esi + 0x8a]
mov byte [esp + 0x78], al
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x54]
push edi
push 0
push 1
push dword [esp + 0x48]
mov esi, dword [edx]
push dword [esp + 0x6c]
call fcn.10127e00
mov dl, al
add esp, 0x14
test dl, dl
jne 0x101263b3
push esi
push 0
push 1
push dword [esp + 0x48]
push dword [esp + 0x6c]
call fcn.10127e00
add esp, 0x14
mov dl, al
cmp esi, edi
jne 0x101263da
cmp byte [edi + 0x88], 0
je 0x101263da
mov al, byte [edi + 0x9f]
test al, al
js 0x101263d0
cmp byte [edi + 0x14], 0
jle 0x101263da
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
jmp 0x10126416
test dl, dl
je 0x10126412
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x28]
imul ecx, eax, 0x13
movzx eax, byte [esp + 0x64]
add ecx, eax
mov eax, dword [ecx*4 + 0x107241e0]
mov ecx, dword [esp + 0x5c]
mov byte [esi], al
add ecx, 0x26f0
movzx eax, dl
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov dword [esi + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
add eax, 0x10723130
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
movzx eax, byte [eax]
cmp ecx, eax
cmovge ecx, eax
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x78]
movzx eax, cl
mov byte [esi], cl
mov byte [esp + 0x64], cl
mov ecx, dword [esp + 0x28]
mov eax, dword [eax*4 + 0x10723400]
add edi, eax
add esi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], esi
lea ecx, [ecx + eax*8]
mov dword [esp + 0x28], ecx
cmp edi, dword [esp + 0x44]
jb 0x101262a0
mov dword [esp + 0x78], ebp
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x30], 0
mov dword [esp + 0x64], ebp
test dl, 3
jne 0x101264aa
lea eax, [edx + 3]
cmp eax, ebx
jge 0x101264aa
cmp ecx, 0x10
jl 0x101264aa
mov byte [esp + 0x30], 2
add ebp, 0xc
jmp 0x101264be
lea eax, [edx + 1]
cmp eax, ebx
jge 0x101264c6
cmp ecx, 8
jl 0x101264c6
mov byte [esp + 0x30], 1
add ebp, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
xor ebp, ebp
cmp dword [esp + 0x4c], ebp
jle 0x1012651e
mov ebx, dword [esp + 0x64]
cmp byte [esi], 0xff
jne 0x101264dd
mov byte [edi], 0
mov byte [esi], 0
push dword [esp + 0x30]
mov eax, dword [esp + 0x60]
push dword [eax + 0x3bb8]
push edi
push dword [esp + 0x54]
push ebx
call fcn.10128280
movzx eax, byte [esi]
add esp, 0x14
mov ecx, dword [eax*4 + 0x10723400]
mov eax, ecx
imul eax, dword [esp + 0x48]
add ebp, ecx
add esi, ecx
lea edi, [edi + ecx*8]
lea ebx, [ebx + eax*4]
cmp ebp, dword [esp + 0x4c]
jl 0x101264d2
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x20], 4
inc ecx
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
jl 0x10125fa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret