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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x1d30]
lea ebx, [esp + 0xba]
mov dword [esp + 0x58], edx
lea edi, [esp + 0x10b]
and ebx, 0xfffffff0
mov dword [esp + 0x9c], ecx
and edi, 0xfffffff0
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*8 + 0x70f8]
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0x1d3c]
mov edx, dword [eax]
mov dword [esp + 0x12e], edx
mov edx, dword [eax + 4]
movzx eax, byte [eax + 8]
mov dword [esp + 0x132], edx
mov edx, dword [esp + 0x58]
mov byte [esp + 0x136], al
mov eax, dword [edx + 0x1d40]
mov edx, dword [eax]
mov dword [esp + 0x137], edx
mov edx, dword [eax + 4]
movzx eax, byte [eax + 8]
mov dword [esp + 0x13b], edx
mov edx, dword [esp + 0x58]
mov byte [esp + 0x13f], al
add edx, 0xca0
mov dword [esp + 0x94], edx
mov dword [esp], edx
call fcn.00d199d0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x168]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], edi
add edx, 0x8128
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x58]
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add edx, 0x7188
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x58]
mov edx, dword [edx + 0x1d28]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x58]
mov edi, dword [edx + 0x1d30]
mov eax, dword [edx + 0x1d2c]
test edi, edi
jne 0xd12ce8
mov edx, dword [esp + 0x54]
sar edx, 2
test edx, edx
jne 0xd130d1
imul eax, eax, 0x54
mov ecx, dword [esp + 0x7c]
mov dx, 0x4b0
sub ecx, eax
mov eax, ecx
mov ecx, dword [ecx]
cmp ecx, 2
je 0xd12cb0
ja 0xd13131
cmp ecx, 1
mov dx, 0x320
je 0xd12cb0
xor edx, edx
test byte [esp + 0x54], 3
jne 0xd130ec
mov ebx, dword [esp + 0x7c]
mov eax, 0x78
mov ecx, dword [ebx - 0x54]
cmp ecx, 2
je 0xd12cdb
ja 0xd13103
cmp ecx, 1
mov al, 0x50
je 0xd12cdb
xor eax, eax
add eax, edx
add eax, dword [esp + 0x98]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x137]
lea ebx, [esp + 0x12e]
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x30], 0
movzx eax, byte [edx + 0x1281879]
mov dword [esp + 0x44], 0x7fffffff
mov dword [esp + 0x3c], 0
add ecx, eax
movzx eax, byte [edx + 0x1281860]
mov dword [esp + 0x5c], ecx
add ebx, eax
imul eax, edx, 0x34
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], ebx
lea edi, [edi + eax + 0xafc]
lea eax, [edx + eax + 0x744]
xor edx, edx
cmp byte [ebx], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
setne dl
xor eax, eax
cmp byte [ecx], 0
setne al
add eax, edx
mov dword [esp + 0x4c], eax
lea esi, [esi]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 8]
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, dword [ebx + 0x2c7d8]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x44]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp + 8], 0x10
mov dword [esp], ecx
call dword [ebx + 0x2c894]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], 0x20
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebp + 0x9390]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebp + 0x939c]
mov edx, dword [esp + 0x28]
mov edi, dword [edi]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], edi
test edx, edx
mov dword [esp + 0x18], edx
jle 0xd1301e
mov ecx, dword [0x1a8d564]
xor eax, eax
mov ebx, dword [0x1a8d560]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
xor ebx, ebx
nop
lea esi, [esi]
mov edx, dword [eax*4 + 0x127fa00]
lea ecx, [ecx + ecx*2]
mov edi, dword [esp + 0x1c]
movsx esi, word [edi + edx*2]
mov edx, dword [esp + 0x20]
movsx edi, word [edx + esi*4]
movzx edx, byte [eax + 0x127fa50]
add eax, 1
lea edx, [edx + edx*8]
lea edx, [ecx + edx]
mov ecx, dword [esp + 0x24]
lea edx, [edi + edx*4 + 0x23c0]
add ebx, dword [ebp + edx*4 + 8]
add ebx, dword [ecx + esi*4]
cmp eax, dword [esp + 0x18]
movzx ecx, byte [edi + 0x127fa40]
jne 0xd12e20
cmp eax, 0xf
mov byte [esp + 0x18], 1
jg 0xd12e8c
movzx eax, byte [eax + 0x127fa50]
lea edx, [ecx + ecx*2]
lea eax, [eax + eax*8]
add eax, edx
shl eax, 4
add ebx, dword [ebp + eax + 0x8f34]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
mov eax, dword [edi + 4]
add esi, ebx
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
call dword [ecx + 0x2c888]
mov edi, dword [esp + 0x44]
mov edx, eax
mov eax, dword [ebp + 0x20c8]
sar edx, 2
imul eax, esi
lea ecx, [eax + 0x80]
mov eax, dword [ebp + 0x20c4]
sar ecx, 8
imul eax, edx
add eax, ecx
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0xd12f92
add dword [esp + 0x30], 1
add dword [esp + 0x3c], 1
cmp dword [esp + 0x30], 0xa
jne 0xd12d70
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x30], edi
mov eax, dword [edx + 0x2c7d8]
mov dword [esp + 8], 0x20
mov edx, dword [ebx + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
call dword [eax + 4]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov edx, dword [eax + 0x2c7d8]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
add eax, dword [ebx + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x8c]
mov edx, eax
sar edx, 0x1f
add dword [esp + 0x70], eax
adc dword [esp + 0x74], edx
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x74], ebx
mov dword [ecx + edx*4 + 0x14], edi
jle 0xd13030
add esp, 0x14c
mov eax, 0x7fffffff
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [esp + 0x18]
mov edi, dword [esp + 0x60]
mov byte [edi], cl
mov edi, dword [esp + 0x5c]
mov byte [edi], cl
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x48]
mov eax, dword [ecx + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 0x10], ecx
mov ecx, dword [eax + 0x20]
mov dword [edi + 0x20], ecx
mov eax, dword [eax + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x30], eax
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 4]
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov dword [ecx + 8], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 0xc], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0x10], edi
mov edi, dword [eax + 0x14]
mov dword [ecx + 0x14], edi
mov edi, dword [eax + 0x18]
mov dword [ecx + 0x18], edi
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], edx
jmp 0xd12ee3
mov ecx, dword [esp + 0x4c]
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x18], 0
jmp 0xd12e73
jl 0xd13043
mov edi, dword [esp + 0x88]
cmp dword [esp + 0x70], edi
jae 0xd12f82
mov ebx, dword [esp + 0x78]
add dword [esp + 0x80], ebx
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
add dword [esp + 0x54], 1
add dword [esp + 0x84], edi
add dword [esp + 0x90], ebx
cmp dword [esp + 0x54], 0x10
jne 0xd12c58
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x9c]
mov edi, dword [esp + 0x160]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x164]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x84]
add dword [edi], edx
mov edx, dword [esp + 0x58]
mov dword [eax], ecx
mov eax, ebx
imul eax, dword [edx + 0x20c8]
mov edx, ecx
mov ecx, dword [esp + 0x58]
sub eax, 0xffffff80
imul edx, dword [ecx + 0x20c4]
add esp, 0x14c
sar eax, 8
pop ebx
pop esi
add eax, edx
pop edi
pop ebp
ret
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x7c]
imul edx, dword [ecx + edi*4 + 4], 0x190
test byte [esp + 0x54], 3
je 0xd12cbb
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x7c]
mov eax, dword [edi + ebx*4 + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0xd12cdb
cmp ecx, 3
mov eax, 0x28
je 0xd12cdb
cmp ecx, 4
jne 0xd12cd9
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + edi*4 - 0x34]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0xd12cdb
cmp ecx, 3
mov edx, 0x190
je 0xd12cb0
cmp ecx, 4
jne 0xd12cae
mov ebx, dword [esp + 0x54]
imul edx, dword [eax + ebx*4 + 0x44], 0x190
jmp 0xd12cb0