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

Disassembly:
sub esp, 0x3e0
mov eax, dword [0xa51c54]
xor eax, esp
mov dword [esp + 0x3dc], eax
mov eax, dword [0xa53020]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0xa12d6c
cmp eax, dword [0xa53030]
jg 0xa12d6c
mov ebp, 1
cmp dword [0xa76d3e], ebp
jne 0xa126e0
mov ebx, dword [0xa76870]
mov dword [0xa76840], edi
mov esi, 0xa76848
mov edi, 0xa76d28
call fcn.00a14f80
test eax, eax
je 0xa126d0
mov dword [0xa76840], ebp
call dword [0xa4323c]
push 0x3e8
mov dword [0xa7693c], eax
call dword [0xa43250]
jmp 0xa12daa
push 0x1388
call dword [0xa43250]
jmp 0xa12daa
push 0xa76bd0
mov ecx, 0xa53030
call fcn.00a13c70
test eax, eax
je 0xa12d52
mov edx, dword [0xa53b50]
mov eax, dword [0xa53b48]
mov ecx, dword [0xa53b4c]
push 0x3c6
mov dword [0xa76cd8], edx
mov dword [0xa76cd0], eax
mov eax, dword [0xa53b54]
mov dword [0xa76cd4], ecx
mov ecx, dword [0xa53ac4]
lea edx, [esp + 0x24]
push edi
push edx
mov dword [0xa76cdc], eax
mov dword [0xa76b4c], ecx
call fcn.00a2ee50
mov eax, dword [0xa76840]
add esp, 0xc
cmp eax, ebp
jne 0xa12803
xor eax, eax
movzx ecx, word [eax + 0xa76844]
mov word [esp + eax + 0xd2], cx
add eax, 2
cmp cx, di
jne 0xa12751
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0xa76892]
mov word [esp + eax + 0x112], cx
add eax, 2
cmp cx, di
jne 0xa12770
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0xa76874]
mov word [esp + eax + 0xd6], cx
add eax, 2
cmp cx, di
jne 0xa12790
mov cl, byte [0xa4c7a4]
mov eax, dword [0xa4c7a0]
mov byte [0xa66844], cl
mov dword [0xa66840], eax
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0xa66844
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0xa66840
mov esi, 0xa76d28
mov dword [0xa53028], 0x3ca
call fcn.00a15080
mov dword [0xa76840], 2
call dword [0xa4323c]
mov dword [0xa7693c], eax
jmp 0xa12daa
cmp eax, 2
jne 0xa1283d
mov esi, dword [0xa4323c]
call esi
sub eax, dword [0xa7693c]
cmp eax, 0x1388
jbe 0xa12daa
mov dword [0xa76840], edi
call esi
mov esi, 0xa76d28
mov dword [0xa7693c], eax
call fcn.00a15050
jmp 0xa12daa
cmp eax, 3
jne 0xa129e5
mov esi, dword [0xa4323c]
call esi
sub eax, dword [0xa7693c]
cmp eax, 0x3e8
jbe 0xa12daa
cmp dword [0xa53020], 6
mov eax, 0xb4
lea ecx, [eax - 0x32]
jne 0xa1287a
mov eax, 0x320
mov ecx, 0x32
mov edx, dword [0xa76cd0]
push ecx
mov ecx, dword [0xa76cd4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0xa76cd8]
mov dword [eax + 4], ecx
mov ecx, dword [0xa76cdc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, 0xa53030
call fcn.00a13ce0
test eax, eax
je 0xa12938
mov eax, dword [0xa53020]
cmp eax, 5
ja 0xa12914
push 0xa4c7d4
push 0xa53b58
call fcn.00a2d316
add esp, 8
test eax, eax
je 0xa128f8
xor eax, eax
jmp 0xa128e0
movzx ecx, word [eax + 0xa53b58]
mov word [eax + 0xa76c50], cx
add eax, 2
cmp cx, di
jne 0xa128e0
jmp 0xa12956
push 0xa4c7dc
push 0xa53b58
call fcn.00a2d316
add esp, 8
test eax, eax
je 0xa12956
mov dword [esp + 0x38], ebp
jmp 0xa12956
cmp eax, 6
jne 0xa12956
xor eax, eax
jmp 0xa12920
movzx ecx, word [eax + 0xa53b58]
mov word [eax + 0xa76c50], cx
add eax, 2
cmp cx, di
jne 0xa12920
jmp 0xa12956
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0xa4c800]
mov word [eax + 0xa76c50], cx
add eax, 2
cmp cx, di
jne 0xa12940
call esi
mov edx, dword [0xa4c804]
mov dword [0xa7693c], eax
mov al, byte [0xa4c808]
mov byte [0xa66844], al
mov dword [0xa66840], edx
xor eax, eax
jmp 0xa12980
movzx ecx, word [eax + 0xa76bd0]
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp cx, di
jne 0xa12980
xor eax, eax
jmp 0xa129a0
movzx ecx, word [eax + 0xa76c50]
mov word [esp + eax + 0x78], cx
add eax, 2
cmp cx, di
jne 0xa129a0
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0xa66844
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0xa66840
mov esi, 0xa76d28
mov dword [0xa53028], 0x3ca
call fcn.00a15080
jmp 0xa12daa
cmp eax, 4
jne 0xa12daa
call dword [0xa4323c]
mov ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0xa7692c]
sub ecx, dword [0xa7693c]
cmp ecx, eax
jbe 0xa12daa
mov edx, dword [0xa76cd8]
mov esi, dword [0xa76cd0]
mov ebx, dword [0xa76cd4]
mov dword [esp + 0x14], edi
mov edi, dword [0xa76cdc]
mov eax, edx
mov ecx, edi
xor ebp, ebp
sub eax, esi
sub ecx, ebx
cmp dword [0xa53020], 6
jne 0xa12a53
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
xor eax, eax
jmp 0xa12ac7
cmp dword [0xa53020], 5
ja 0xa12aae
cmp dword [0xa76b48], 3
jne 0xa12aae
mov al, byte [0xa4c880]
mov edx, dword [0xa4c87c]
mov byte [0xa66844], al
mov eax, dword [0xa76d20]
mov dword [0xa66840], edx
test eax, eax
je 0xa12daa
push 0xa53028
call eax
mov eax, dword [0xa76d24]
add esp, 4
test eax, eax
je 0xa12daa
push 0xa66844
call eax
add esp, 4
jmp 0xa12d16
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [edx], ebp
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov eax, dword [0xa76b4c]
mov dword [edx + 0xc], ecx
push 0xa76d00
call fcn.00a14440
test eax, eax
je 0xa12daa
mov esi, dword [0xa76d00]
test esi, esi
je 0xa12daa
mov eax, dword [0xa53020]
test eax, eax
jne 0xa12b28
push 0xd0
push 0x140
push eax
push 0x10e
push esi
push 0xa76ce8
call fcn.00a137d0
push 0x14
push 0
push 0xbc
push 0x140
push 0x21c
mov edx, 0x104
jmp 0xa12cc7
cmp eax, 1
jne 0xa12b63
push 0xd0
push 0x140
push 0
push 0x64
push esi
push 0xa76ce8
call fcn.00a137d0
push 0x14
push 0
push 0xbc
push 0x140
push 0x203
mov edx, 0xe6
jmp 0xa12cc7
cmp eax, 2
je 0xa12c96
cmp eax, 3
je 0xa12c96
cmp eax, 4
jne 0xa12bd0
push 0xad
push 0x140
push 6
push 0x10e
push esi
push 0xa76ce8
call fcn.00a137d0
push 0
push 0xf0
push 0x14
push 0x50
push 6
push esi
mov edx, 0x2a8
mov ebx, 0xa76ce8
call fcn.00a13960
push 0x14
push 0
push 0x9b
push 0x140
push 0x24e
mov edx, 0x14a
jmp 0xa12cc7
cmp eax, 5
jne 0xa12c2b
push 0xd0
push 0x140
push 0
push 0x69
push esi
push 0xa76ce8
call fcn.00a137d0
push 0
push 0x8c
push 0x14
push 0xb4
push 0
push esi
mov edx, 0x1b3
mov ebx, 0xa76ce8
call fcn.00a13960
push 0x14
push 0
push 0xbc
push 0x140
push 0x1ea
mov edx, 0xe6
jmp 0xa12cc7
cmp eax, 6
jne 0xa12c63
push 0xdc
push 0x190
push 0
push 0x5a
push esi
push 0xa76ce8
call fcn.00a137d0
push 0x17
push 0
push 0xc5
push 0x190
push 0x226
mov edx, 0xfa
jmp 0xa12cc7
push 0xc8
push 0x154
push 0
push 0x78
push esi
push 0xa76ce8
call fcn.00a137d0
push 0x1e
push 0
push 0xaa
push 0x154
push 0x226
mov edx, 0x14a
jmp 0xa12cc7
push 0xbc
push 0x140
push 0
push 0x6e
push esi
push 0xa76ce8
call fcn.00a137d0
push 0x14
push 0
push 0xa8
push 0x140
push 0x186
mov edx, 0x82
push esi
mov ebx, 0xa76ce8
call fcn.00a13960
mov edx, dword [0xa4c984]
mov al, byte [0xa4c988]
mov ecx, dword [0xa76934]
push 0xa53028
push 0xa66844
mov dword [0xa66840], edx
mov edx, dword [0xa76cec]
push ecx
mov byte [0xa66844], al
mov eax, dword [0xa76ce8]
push edx
push eax
call fcn.00a198b0
add esp, 0x14
test eax, eax
jne 0xa12daa
mov ecx, dword [0xa53028]
dec ecx
cmp ecx, 0xfffa
ja 0xa12daa
add dword [0xa53028], 4
push 0
push 0xa66840
mov esi, 0xa76d28
call fcn.00a15080
test eax, eax
je 0xa12daa
call dword [0xa4323c]
mov dword [0xa7693c], eax
jmp 0xa12daa
mov dword [0xa76cd0], edi
mov dword [0xa76cd4], edi
mov dword [0xa76cd8], edi
mov dword [0xa76cdc], edi
jmp 0xa12daa
mov dword [0xa76840], edi
call dword [0xa4323c]
cmp dword [0xa76d3e], 3
mov dword [0xa7693c], eax
jl 0xa12daa
mov eax, dword [0xa76d3a]
cmp eax, edi
je 0xa12da0
push eax
call dword [fcn.00a4341c]
test eax, eax
jne 0xa12da0
mov dword [0xa76d3a], edi
mov dword [0xa76d3e], 1
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00a2cbc3
add esp, 0x3e0
ret