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

Disassembly:
sub esp, 0x134
push esi
push edi
mov edi, dword [eax + 0x1c]
xor esi, esi
test edi, edi
mov dword [esp + 8], 0
je 0xad6de
mov edx, dword [0x4e73e0]
push ebx
push ebp
mov ebp, 0x200
mov bl, 0x10
lea esp, [esp]
mov ecx, dword [edi]
test ecx, ecx
je 0xad20b
test dword [edi + 0x18], ebp
je 0xad20b
mov eax, dword [edi + 0x88]
cmp al, 1
je 0xad20b
test byte [ecx + 0xa4], bl
jne 0xad20b
test ah, 1
je 0xad20b
cmp byte [edi + 0x18], 4
jg 0xad20b
cmp dword [edi + 0x20], 0
jne 0xad20b
cmp dword [edi + 0x1c], 0
jne 0xad20b
test esi, esi
jne 0xad1eb
mov esi, edx
call fcn.000a9e90
mov edx, dword [0x4e73e0]
mov esi, dword [edx + 0x24c8]
mov ecx, dword [edi]
cmp dword [ecx + 0x40], esi
jae 0xad20b
cmp dword [esp + 0x10], 0x28
jae 0xad20b
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xa4], edi
add eax, 1
mov dword [esp + 0x10], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0xad1a0
mov eax, dword [esp + 0x10]
test eax, eax
je 0xad6ce
push 0xad150
push 4
push eax
lea edx, [esp + 0xb0]
push edx
call fcn.003f3da0
xor ebp, ebp
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x10], ebp
mov dword [esp + 0x24], eax
jbe 0xad6ce
mov edi, dword [0x4e73e0]
mov edi, edi
mov ebx, dword [esp + eax*4 + 0xa4]
mov ecx, dword [ebx]
cmp dword [ecx + 0x40], esi
jae 0xad6bd
mov ecx, dword [ebx + 4]
cmp ecx, ebp
je 0xad27c
mov edx, dword [ecx]
call dword [edx + 0x2c]
test eax, eax
jne 0xad69e
mov edi, dword [0x4e73e0]
cmp byte [ebx + 0x88], 2
mov esi, 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
jne 0xad2aa
test byte [edi + 0x2484], 0x20
jne 0xad2a6
mov eax, dword [ebx]
cmp dword [eax + 0x40], 0x40000
jbe 0xad2aa
mov eax, esi
jmp 0xad2ac
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], esi
test byte [edi + 0x2485], 1
je 0xad2c9
cmp eax, ebp
mov dword [esp + 0x40], esi
je 0xad2cd
mov dword [esp + 0x40], ebp
mov eax, dword [ebx + 4]
cmp eax, ebp
mov dword [esp + 0x38], esi
je 0xad300
push eax
call fcn.0006a030
cmp eax, ebp
je 0xad6a4
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0x64]
cmp eax, ebp
je 0xad69e
mov edi, dword [0x4e73e0]
cmp dword [edi + 0x3a40], ebp
mov dword [esp + 0x18], ebp
jne 0xad316
mov dword [edi + 0x3a40], esi
mov dword [esp + 0x18], esi
cmp dword [ebx + 0x34], esi
jbe 0xad323
push esi
mov edi, ebx
call fcn.000ac360
movsx eax, byte [ebx + 0x18]
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x68]
push eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x70]
push eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x1c], edx
push ecx
mov edx, esi
lea ecx, [esp + 0x58]
mov byte [ebx + 0x18], 0
call fcn.000a30e0
mov edx, dword [ebx + 0x40]
mov ebp, dword [ebx + 0x44]
mov eax, edx
and eax, 6
xor ecx, ecx
or eax, ecx
je 0xad364
mov eax, 1
jmp 0xad366
xor eax, eax
mov ecx, dword [esp + 0x9c]
shl eax, 0x1b
xor eax, ecx
and eax, 0x8000000
xor ecx, eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x9c], ecx
lea esi, [ebx + 0x48]
mov ecx, 8
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x84]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x88]
xor ecx, eax
and ecx, 0xff
xor eax, ecx
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x78]
and eax, 0xff
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 0x94]
shl eax, 0x10
push 0
and ecx, 0xffff
or eax, ecx
push 0
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x4e73e0]
lea ecx, [esp + 0x34]
push ecx
push ebp
push edx
lea edx, [esp + 0x64]
push edx
add eax, 0x31c0
call fcn.000aebb0
mov ebp, eax
test ebp, ebp
jne 0xad428
cmp dword [esp + 0x18], ebp
mov al, byte [esp + 0x1c]
mov byte [ebx + 0x18], al
je 0xad69e
mov edi, dword [0x4e73e0]
mov dword [edi + 0x3a40], ebp
jmp 0xad6a4
cmp dword [esp + 0x44], 0
jne 0xad4f3
cmp dword [esp + 0x34], 0
je 0xad5c2
mov edx, dword [0x4e73e0]
test byte [edx + 0x2484], 0x20
je 0xad489
mov ecx, dword [edx + 0x360]
lea eax, [edx + 8]
mov edx, dword [eax + 0x154]
mov dword [eax + ecx*4 + 0x158], edx
add dword [eax + 0x358], 1
cmp byte [ebx + 0x88], 1
jne 0xad47e
mov ecx, dword [esp + 0x38]
call fcn.000b63b0
jmp 0xad483
call fcn.000b6430
mov edx, dword [0x4e73e0]
mov eax, dword [esp + 0x14]
lea esi, [eax + 0x44]
add eax, 0x38
lea edi, [ebp + 0x44]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x38]
je 0xad4d4
test ecx, ecx
je 0xad4d4
mov esi, dword [eax + 8]
mov edi, dword [ecx + 8]
cmp esi, edi
jb 0xad4b2
mov esi, edi
push 0
push esi
push 0
push 0
push ecx
push eax
push 0xd3d03902
add edx, 8
push edx
mov eax, 7
call fcn.000cc6e0
mov edx, dword [0x4e73e0]
test byte [edx + 0x2484], 0x20
je 0xad4eb
lea eax, [edx + 8]
call fcn.0006a0c0
mov edx, dword [0x4e73e0]
lea edi, [edx + 8]
call fcn.000b57c0
mov edi, dword [esp + 0x14]
mov esi, dword [0x4e73e0]
add esi, 0x31c0
mov eax, edi
mov edx, ebx
call fcn.000ad9f0
mov edx, dword [ebx + 0x88]
and edx, 0xff
push edx
mov eax, edi
mov ecx, esi
call fcn.000c98f0
mov ecx, dword [esp + 0x28]
mov al, byte [ebx + 0x88]
mov edi, dword [0x4e73e0]
push ecx
mov byte [ebx + 0x89], al
push 1
lea esi, [edi + 0x31c0]
mov ecx, ebp
mov edx, ebx
mov byte [ebx + 0x88], 1
call fcn.000adc00
mov dl, byte [esp + 0x1c]
xor ebp, ebp
cmp dword [esp + 0x18], ebp
mov byte [ebx + 0x18], dl
je 0xad566
mov dword [edi + 0x3a40], ebp
cmp dword [esp + 0x34], ebp
jne 0xad586
test byte [ebx + 0x19], 0x10
jne 0xad586
cmp dword [esp + 0x44], ebp
jne 0xad586
push ebp
mov esi, ebx
call fcn.000acf40
mov edi, dword [0x4e73e0]
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0xad5ad
push eax
mov dword [esp + 0x34], ebp
call fcn.0006a030
cmp eax, ebp
je 0xad5ad
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0x64]
mov edi, dword [0x4e73e0]
mov edx, dword [ebx]
mov edx, dword [edx + 0x40]
lea esi, [edi + 0x3a80]
call fcn.0011d1f0
jmp 0xad6a4
xor esi, esi
push esi
push esi
mov eax, 1
mov edi, ebx
call fcn.000abaf0
mov ecx, dword [0x4e73e0]
mov edi, dword [esp + 0x14]
push esi
push 1
push edi
add ecx, 0x31c0
call fcn.000c9bf0
test eax, eax
je 0xad679
mov ecx, dword [0x4e73e0]
push esi
push 1
push ebp
add ecx, 0x31c0
call fcn.000c9bf0
test eax, eax
je 0xad679
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp + 0x40]
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0xad61e
mov dword [esp + 0x20], ecx
cmp dword [edi + 0x28], 0
jne 0xad62d
xor eax, eax
mov esi, edi
call fcn.000afa80
cmp dword [ebp + 0x28], 0
mov edi, dword [edi + 0x28]
jne 0xad63f
xor eax, eax
mov esi, ebp
call fcn.000afa80
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x23a4]
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x28]
push ecx
push edx
push edi
push eax
call fcn.0038adb0
mov edi, dword [0x4e73e0]
add esp, 0x10
add edi, 0x31c0
mov esi, ebp
call fcn.000c9d60
mov edi, dword [esp + 0x14]
mov esi, 1
call fcn.000abde0
test esi, esi
jne 0xad4f7
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [0x4e73e0]
add ecx, 0x31c0
mov eax, ebp
call fcn.000c98f0
mov edi, dword [0x4e73e0]
mov esi, edi
call fcn.000a9e90
mov edi, dword [0x4e73e0]
mov esi, dword [edi + 0x24c8]
mov eax, dword [esp + 0x24]
xor ebp, ebp
add eax, 1
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
jb 0xad250
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x134
ret
pop edi
mov eax, 1
pop esi
add esp, 0x134
ret