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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [ebx + 0xd8]
push edi
test byte [ebp + 0x18], 0x40
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x3c], eax
je 0x101ad254
mov ecx, dword [ebp + 0x10]
jmp 0x101ad256
xor ecx, ecx
mov eax, dword [ebp + 4]
add eax, 4
add eax, ecx
push eax
push ebx
mov dword [esp + 0x1c], eax
call fcn.101ad8d0
add esp, 8
test eax, eax
jne 0x101ad871
mov edx, dword [edi + 0x2e0]
mov edi, edx
and edi, 0x400
and edx, 1
mov dword [esp + 0x30], edi
test edi, edi
je 0x101ad294
mov eax, 0x26
jmp 0x101ad29d
mov eax, edx
neg eax
sbb eax, eax
and eax, 6
movzx ebx, word [esi + 0x18]
mov ecx, dword [esi + 8]
add ebx, 0xe
lea ebx, [ecx + ebx*2]
movzx eax, word [ebx + eax]
add eax, ecx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
mov al, byte [eax]
mov byte [esp + 0x13], al
cmp al, 2
je 0x101ad2cb
add dword [esp + 0x14], 4
movzx ebp, word [esi + 0x18]
test edi, edi
je 0x101ad2eb
add ebp, 0xd
mov dword [esp + 0x28], 0x26
lea eax, [ecx + ebp*2]
mov dword [esp + 0x1c], eax
movzx eax, word [eax + 0x26]
jmp 0x101ad30f
mov eax, edx
neg eax
sbb eax, eax
add ebp, 0xd
and eax, 6
lea ebp, [ecx + ebp*2]
movzx eax, word [eax + ebp]
mov dword [esp + 0x1c], ebp
mov ebp, edx
neg ebp
sbb ebp, ebp
and ebp, 6
mov dword [esp + 0x28], ebp
cmp byte [esp + 0x13], 4
mov ebp, dword [esp + 0x80]
je 0x101ad848
cmp byte [esp + 0x13], 3
je 0x101ad819
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
sub ax, word [ecx + ebp]
mov ebp, dword [esp + 0x80]
dec ax
movzx ecx, ax
mov eax, dword [esi + 0x4c]
add ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
shr eax, 2
cmp ecx, eax
ja 0x101ad819
test edi, edi
je 0x101ad364
mov edi, 0x26
jmp 0x101ad36d
mov edi, edx
neg edi
sbb edi, edi
and edi, 6
mov ecx, dword [esi + 8]
movzx eax, word [ecx + 0x14]
movzx ecx, word [ecx + 0x16]
add eax, eax
sub ecx, eax
sub ecx, edi
sub ecx, 0x1a
cmp dword [esp + 0x14], ecx
ja 0x101ad819
cmp byte [esp + 0x13], 2
je 0x101ad479
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
inc eax
cmp dword [esp + 0x30], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x5c], eax
je 0x101ad3bd
movzx eax, word [ecx + 0x26]
mov edx, 0x26
jmp 0x101ad3d1
mov eax, edx
neg eax
sbb eax, eax
and eax, 6
neg edx
sbb edx, edx
and edx, 6
movzx eax, word [ecx + eax]
mov ecx, dword [esp + 0x24]
lea edi, [ebx + 0x6c]
push edi
sub ax, word [ecx + edx]
dec ax
movzx ecx, ax
movzx eax, ax
mov dword [esp + 0x64], eax
lea eax, [ebx + 0x64]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x38], ecx
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x28]
call fcn.101ae7d0
add esp, 0x14
test eax, eax
jne 0x101ad871
push 1
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.10173010
add esp, 0xc
test eax, eax
jne 0x101ad871
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x2e0]
test eax, 0x400
je 0x101ad43f
mov edx, 0x26
jmp 0x101ad44b
and al, 1
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
mov ecx, dword [esi + 8]
movzx eax, word [esi + 0x18]
lea eax, [ecx + eax*2]
movzx eax, word [eax + edx + 0x1c]
mov byte [eax + ecx], 2
xor eax, eax
or dword [esi + 0x74], 0x10
mov word [esi + 0x5c], ax
mov eax, dword [esp + 0x30]
mov word [esi + 0x5e], ax
add eax, 4
mov word [esi + 0x60], ax
jmp 0x101ad47c
lea edi, [ebx + 0x6c]
push edi
lea eax, [ebx + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
push ebp
push dword [esp + 0x28]
call fcn.101ae7d0
add esp, 0x14
test eax, eax
jne 0x101ad871
mov edi, dword [esp + 0x84]
dec edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], edi
cmp edi, 0x15
ja case.0x101ad7aa.1
movzx eax, byte [edi + 0x101ad88c]
jmp dword [eax*4 + 0x101ad87c]
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x10], 0
je 0x101ad6b5
mov eax, dword [ebx]
mov edx, fcn.101420f0
mov edi, dword [ebx + 0xd8]
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x10]
test ecx, ecx
cmove ecx, edx
test byte [edi + 0x74], 1
mov dword [esp + 0x38], ecx
je 0x101ad4f9
movzx ebp, word [edi + 0x5c]
jmp 0x101ad4fb
xor ebp, ebp
mov eax, dword [eax + 0x2e0]
mov ecx, eax
and ecx, 0x400
and eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x101ad51f
mov eax, 0x26
jmp 0x101ad526
neg eax
sbb eax, eax
and eax, 6
movzx edx, word [edi + 0x18]
mov ecx, dword [edi + 8]
lea ecx, [ecx + edx*2]
add edx, 0xd
add ecx, 0x1c
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ecx
movzx ecx, word [ecx + eax]
add ecx, dword [edi + 8]
movzx eax, bp
inc eax
add eax, ecx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x1c], eax
je 0x101ad565
mov ecx, dword [edi + 8]
movzx ecx, word [ecx + edx*2 + 0x26]
mov edx, 0x26
jmp 0x101ad58b
mov edx, dword [esp + 0x2c]
mov ecx, edx
mov eax, dword [edi + 8]
neg ecx
mov ebx, dword [esp + 0x14]
sbb ecx, ecx
and ecx, 6
neg edx
lea eax, [eax + ebx*2]
sbb edx, edx
and edx, 6
movzx ecx, word [eax + ecx]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
sub cx, word [edx + ebx]
mov ebx, dword [esp + 0x7c]
dec cx
mov dword [esp + 0x34], ecx
mov word [edi + 0x60], cx
movzx ecx, word [edi + 0x5e]
cmp bp, word [esp + 0x34]
jae 0x101ad668
movzx ecx, bp
mov dword [esp + 0x30], ecx
movzx ecx, word [eax]
add eax, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
movzx eax, cx
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x84]
movzx edx, cx
push dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edx
call dword [esp + 0x44]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x101ad671
jns 0x101ad604
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x10], 0
jne 0x101ad626
mov ebx, dword [esp + 0x34]
add ebp, 4
mov ecx, dword [esp + 0x14]
add ebx, 2
mov eax, dword [esp + 0x1c]
add ebp, ecx
add eax, ebx
mov ebx, dword [esp + 0x7c]
cmp bp, word [edi + 0x60]
jb 0x101ad5b0
jmp 0x101ad675
cmp dword [esp + 0x84], 0xa
jne 0x101ad671
mov ecx, dword [esp + 0x30]
movzx eax, cx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
or dword [edi + 0x74], 0x10
mov word [edi + 0x5e], ax
mov eax, dword [esp + 0x84]
mov word [edi + 0x5c], cx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.10101dd0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edx, dword [esp + 0x80]
jmp 0x101ad675
mov ecx, dword [esp + 0x14]
movzx eax, bp
mov dword [esp + 0x50], eax
or dword [edi + 0x74], 0x10
mov word [edi + 0x5c], bp
mov word [edi + 0x5e], cx
test edx, edx
jne 0x101ad759
mov eax, dword [esp + 0x84]
cmp eax, 0x16
jne 0x101ad652
push eax
push dword [esp + 0x84]
push ebx
call fcn.1016ea10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edx, dword [ecx + 0x2e0]
movzx eax, word [esi + 0x18]
mov edi, dword [esi + 8]
test edx, 0x400
je 0x101ad6d6
movzx ecx, word [edi + eax*2 + 0x40]
mov edx, 0x26
jmp 0x101ad6f5
and edx, 1
lea eax, [edi + eax*2]
mov ecx, edx
neg ecx
sbb ecx, ecx
and ecx, 6
neg edx
sbb edx, edx
and edx, 6
movzx ecx, word [eax + ecx + 0x1a]
movzx eax, word [esi + 0x18]
lea eax, [edi + eax*2]
mov edi, dword [esp + 0x24]
sub cx, word [eax + edx + 0x1c]
dec cx
movzx ecx, cx
mov word [esi + 0x60], cx
mov ax, word [ebp + 4]
or dword [esi + 0x74], 0x10
cmp dword [esp + 0x84], 0xd
mov word [esi + 0x5e], ax
jne 0x101ad730
xor eax, eax
mov dword [esp + 0x50], 0
mov word [esi + 0x5c], ax
jmp 0x101ad764
mov eax, ecx
mov dword [esp + 0x50], eax
mov word [esi + 0x5c], ax
jmp 0x101ad764
movzx eax, word [esi + 0x5c]
mov dword [esp + 0x50], eax
jmp 0x101ad764
movzx eax, word [esi + 0x5e]
movzx ecx, word [esi + 0x5c]
add eax, 4
add eax, ecx
mov dword [esp + 0x50], eax
jmp 0x101ad764
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x24]
push 0
push dword [ebx + 0x14]
lea eax, [esi + 8]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push eax
push dword [esp + 0x50]
call fcn.101703a0
add esp, 0x18
test eax, eax
jne 0x101ad871
push eax
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.10173010
add esp, 0xc
test eax, eax
jne 0x101ad871
cmp edi, 0x12
ja case.0x101ad7aa.1
movzx eax, byte [edi + 0x101ad8b0]
jmp dword [eax*4 + 0x101ad8a4]
movzx eax, word [esi + 0x5e]
add ax, 4
add word [esi + 0x5c], ax
movzx eax, word [ebp + 4]
mov word [esi + 0x5e], ax
movzx eax, word [ebp + 4]
add ax, 4
add word [esi + 0x60], ax
jmp 0x101ad7e7
movzx eax, word [ebp + 4]
add ax, 4
add word [esi + 0x60], ax
movzx eax, word [ebp + 4]
mov word [esi + 0x5e], ax
push 1
push 2
push dword [esp + 0x4c]
push ebx
call fcn.1016fd10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push str.__ham_add_dup
push dword [esp + 0x1c]
call fcn.100d1040
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push ebx
call fcn.101ae1d0
add esp, 4
test eax, eax
jne 0x101ad871
mov eax, dword [esi]
push 0
push dword [esp + 0x88]
push ebp
push 0
push eax
mov eax, dword [eax + 0x134]
call eax
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
test edi, edi
je 0x101ad853
mov edx, 0x26
jmp 0x101ad85a
neg edx
sbb edx, edx
and edx, 6
mov eax, dword [esp + 0x24]
movzx eax, word [edx + eax]
mov ecx, dword [eax + ecx + 4]
mov eax, dword [esp + 0x88]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret