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

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov eax, dword [esp + 0x68]
mov ecx, dword [edx]
push ebx
push ebp
push esi
xor esi, esi
test dword [eax + 0x24], 0x400
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0xa4635a
movzx eax, byte [eax + 0x1d]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
cmp word [esp + 0x74], si
je 0xa46371
test byte [ecx + 0x3c], 0x80
je 0xa46371
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x68]
movzx eax, word [eax]
cmp ax, 0x3f
ja 0xa46367
movzx ecx, ax
mov eax, 1
xor edx, edx
mov byte [esp + 0x17], 1
mov dword [esp + 0x20], ecx
call fcn.00a97c00
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x2c], esi
jmp 0xa463c0
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x5c]
ja 0xa46893
jb 0xa463de
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x58]
jae 0xa46893
movzx eax, word [esp + 0x74]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0xa46893
test ecx, ecx
jle 0xa46405
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
or dword [esp + 0x48], esi
or dword [esp + 0x4c], edx
cmp ecx, eax
jge 0xa46415
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 0x18]
mov edx, dword [edx + ecx*4]
jmp 0xa46419
mov edx, dword [esp + 0x78]
movzx eax, byte [edx + 0x10]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*8 + 0x34]
xor ecx, ecx
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
jle 0xa46551
mov dword [esp + 0x24], ecx
mov eax, 1
xor edx, edx
call fcn.00a97c00
mov ebx, edx
mov ebp, eax
and eax, dword [esp + 0x40]
mov ecx, ebx
and ecx, dword [esp + 0x44]
or eax, ecx
jne 0xa46535
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edx]
call fcn.00a119c0
mov edi, eax
cmp byte [edi], 0x99
jne 0xa46535
mov ecx, dword [esp + 0x30]
cmp dword [edi + 0x1c], ecx
jne 0xa46535
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
movsx ecx, word [edi + 0x20]
push 0
not eax
not edx
push eax
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x40]
add edx, 0x148
mov eax, 0x82
call fcn.00a40af0
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa46535
test byte [esi + 0x12], 2
je 0xa4652d
cmp word [edi + 0x20], 0
jl 0xa4652d
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + eax]
push edx
call fcn.00a119f0
add esp, 4
test eax, eax
jne 0xa464ff
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 8]
mov edi, dword [eax]
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esi]
call fcn.00a119f0
add esp, 4
test eax, eax
jne 0xa4651d
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 8]
mov eax, dword [eax]
push eax
push edi
call fcn.009ea0e0
add esp, 8
test eax, eax
jne 0xa46535
or dword [esp + 0x40], ebp
or dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x28]
add dword [esp + 0x24], 0x18
inc ecx
cmp ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
jl 0xa46447
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0xa467f4
test eax, 0x100
je 0xa46575
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], esi
lea eax, [esi + 1]
jmp 0xa465a9
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0xa46367
test byte [ecx + 0x38], 4
jne 0xa46367
movzx edx, word [ecx + 0x32]
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x34]
mov dword [esp + 0x38], edx
setne byte [esp + 0x17]
mov esi, ecx
movzx eax, ax
xor edx, edx
mov byte [esp + 0x1a], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0xa467f4
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0x18]
cmp edx, ecx
jge 0xa46603
cmp word [eax + 0x1a], 0
jne 0xa46603
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + edx*4]
movzx eax, word [eax + 0x12]
test al, 0x82
je 0xa46603
test al, al
jns 0xa467d8
mov byte [esp + 0x17], 0
jmp 0xa467d8
test esi, esi
je 0xa46625
mov eax, dword [esi + 4]
movsx ebp, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov al, byte [edx + eax]
mov byte [esp + 0x18], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x24]
cmp ebp, eax
jne 0xa4662d
jmp 0xa4662a
mov byte [esp + 0x18], 0
or ebp, 0xffffffff
cmp byte [esp + 0x17], 0
je 0xa46652
test ebp, ebp
jl 0xa46652
cmp edx, ecx
jl 0xa46652
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 4]
lea edx, [ebp + ebp*2]
cmp byte [eax + edx*8 + 0x14], 0
jne 0xa46652
mov byte [esp + 0x17], 0
xor esi, esi
mov bl, 1
xor edi, edi
jmp 0xa46660
cmp esi, dword [esp + 0x20]
jge 0xa4672e
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.00a97c00
and eax, dword [esp + 0x40]
and edx, dword [esp + 0x44]
or eax, edx
jne 0xa46722
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 8]
mov ecx, dword [edi + edx]
mov eax, ecx
test eax, eax
je 0xa466c4
jmp 0xa466a0
mov edx, dword [eax + 4]
test edx, 0x1000
je 0xa466c4
test edx, 0x40000
je 0xa466bd
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [edx]
jmp 0xa466c0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0xa466a0
test dword [esp + 0x70], 0x300
jne 0xa466d0
xor bl, bl
cmp byte [eax], 0x99
jne 0xa46722
mov edx, dword [esp + 0x30]
cmp dword [eax + 0x1c], edx
jne 0xa46722
movsx eax, word [eax + 0x20]
cmp eax, ebp
jne 0xa46722
test ebp, ebp
jl 0xa4675d
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
push eax
call fcn.00a119f0
add esp, 4
test eax, eax
jne 0xa46704
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx + edx*4]
mov edx, dword [eax]
push ecx
push edx
call fcn.009ea0e0
add esp, 8
test eax, eax
je 0xa46759
inc esi
add edi, 0x18
test bl, bl
jne 0xa46660
mov eax, dword [esp + 0x28]
test eax, eax
je 0xa4673f
movzx edx, word [esp + 0x38]
cmp eax, edx
jge 0xa46744
mov byte [esp + 0x17], 0
cmp byte [esp + 0x1b], 0
je 0xa467f4
mov byte [esp + 0x17], 1
jmp 0xa467ff
test ebp, ebp
jge 0xa46762
mov byte [esp + 0x1b], 1
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.00a97c00
or dword [esp + 0x40], eax
mov ecx, dword [esp + 0x64]
or dword [esp + 0x44], edx
mov eax, 0x100
test word [ecx + 0x22], ax
jne 0xa467d8
cmp byte [esp + 0x1a], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
lea edx, [esi + esi*2]
je 0xa467ac
mov al, byte [esp + 0x18]
xor al, byte [esp + 0x19]
cmp al, byte [ecx + edx*8 + 0xc]
jne 0xa46367
jmp 0xa467d8
mov al, byte [ecx + edx*8 + 0xc]
xor al, byte [esp + 0x18]
mov byte [esp + 0x19], al
je 0xa467d3
mov ecx, dword [esp + 0x2c]
mov eax, 1
xor edx, edx
call fcn.00a97c00
mov ecx, dword [esp + 0x7c]
or dword [ecx], eax
or dword [ecx + 4], edx
mov byte [esp + 0x1a], 1
mov edx, dword [esp + 0x28]
inc edx
cmp edx, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
jge 0xa46744
mov esi, dword [esp + 0x24]
jmp 0xa465d0
cmp byte [esp + 0x17], 0
je 0xa46884
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
or dword [esp + 0x50], ecx
or dword [esp + 0x54], edx
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jle 0xa46884
mov dword [esp + 0x30], ebp
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.00a97c00
mov edi, edx
mov esi, eax
and eax, dword [esp + 0x40]
mov ecx, edi
and ecx, dword [esp + 0x44]
or eax, ecx
jne 0xa46878
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + ecx]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x44
push eax
call fcn.00a403d0
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
not ecx
not ebx
and eax, ecx
and edx, ebx
add esp, 8
or eax, edx
jne 0xa46878
or dword [esp + 0x40], esi
or dword [esp + 0x44], edi
add dword [esp + 0x30], 0x18
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0xa4681d
inc dword [esp + 0x2c]
cmp byte [esp + 0x17], 0
jne 0xa463c0
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x40], edx
jne 0xa468b4
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x44], eax
jne 0xa468b4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
movzx eax, byte [esp + 0x17]
pop edi
pop esi
neg eax
pop ebp
sbb eax, eax
pop ebx
add esp, 0x50
ret