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

Disassembly:
sub esp, 0xdc
mov eax, 0x48000001
mov dword [rsp + 0x20], 0x7948c031
push rbx
push rbp
mov ebp, dword [rsp + 0xe8]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x5c], eax
cmp dword [rbp + 0x51c], 1
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xd8], eax
lea eax, [rbp + 0x758]
push rsi
push rdi
mov dword [rsp + 0x34], 0x24448b1b
mov dword [rsp + 0x38], 0x244c8b04
mov dword [rsp + 0x3c], 0x24548b08
mov dword [rsp + 0x40], 0xc281520c
mov dword [rsp + 0x44], 0x200
mov dword [rsp + 0x48], 0x7501e983
mov dword [rsp + 0x4c], 0xc3d0fff4
mov dword [rsp + 0x50], 0x48ec8148
mov dword [rsp + 0x58], 0x3024ac89
mov dword [rsp + 0x60], 0x38249c89
mov dword [rsp + 0x68], 0x2024bc89
mov dword [rsp + 0x70], 0x2824b489
mov dword [rsp + 0x78], 0x8948e689
mov dword [rsp + 0x7c], 0x200b8cf
mov dword [rsp + 0x80], 0x894c0000
mov dword [rsp + 0x84], 0x148d48c1
mov dword [rsp + 0x88], 0x48d4c01
mov dword [rsp + 0x8c], 0xc8d4d02
mov dword [rsp + 0x90], 0x1c8d4900
mov dword [rsp + 0x94], 0x9c894801
mov dword [rsp + 0x98], 0x10024
mov dword [rsp + 0x9c], 0xc3014800
mov dword [rsp + 0xa0], 0x249c8948
mov dword [rsp + 0xa4], 0x108
mov dword [rsp + 0xa8], 0x48c30148
mov dword [rsp + 0xac], 0x10249c89
mov dword [rsp + 0xb4], 0x8948c301
mov dword [rsp + 0xb8], 0x118249c
mov dword [rsp + 0xbc], 0xd7ff0000
mov dword [rsp + 0xc0], 0x48f48948
mov dword [rsp + 0xc4], 0x2824b48b
mov dword [rsp + 0xcc], 0x2024bc8b
mov dword [rsp + 0xd4], 0x38249c8b
mov dword [rsp + 0xdc], 0x3024ac8b
mov dword [rsp + 0xe4], 0x148c481
mov dword [rsp + 0xe8], 0xc30000
mov dword [rsp + 0x20], eax
je 0x40af61
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea ebx, [rax + 0x1918]
xor esi, esi
mov edi, dword [rbx + 0x3c]
add edi, ebx
push rsi
mov dword [rsp + 0x20], edi
call qword [rbp + 0x38]
mov cx, word [rdi + 4]
mov dword [rsp + 0x2c], eax
mov edx, dword [rax + 0x3c]
cmp cx, word [rdx + rax + 4]
jne 0x40b2bc
push 0x40
mov eax, 0x3000
mov ecx, 0x1000
push rax
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0x50]
add eax, ecx
push rax
push rsi
call qword [rbp + 0x3c]
mov esi, eax
test esi, esi
je 0x40b2bc
push qword [rdi + 0x54]
push rbx
push rsi
call fcn.0040b843
movzx eax, word [rdi + 0x14]
xor ecx, ecx
add esp, 0xc
mov dword [rsp + 0x10], ecx
add eax, 0x2c
cmp cx, word [rdi + 6]
jae 0x40b006
lea ebp, [rax + rdi]
push qword [rbp - 4]
mov eax, dword [rbp]
add eax, ebx
push rax
mov eax, dword [rbp - 8]
add eax, esi
push rax
call fcn.0040b843
mov ecx, dword [rsp + 0x1c]
lea ebp, [rbp + 0x28]
movzx eax, word [rdi + 6]
add esp, 0xc
mov dword [r12 + 0x10], ecx
cmp ecx, eax
jb 0x40afd4
mov ebp, dword [rsp + 0xf0]
mov eax, dword [rdi + 0x80]
test eax, eax
je 0x40b086
lea ebx, [rax + rsi]
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x18], ebx
test eax, eax
je 0x40b086
add eax, esi
push rax
call qword [rbp + 0x30]
mov edx, dword [rbx + 0x10]
mov dword [rsp + 0x14], eax
add edx, esi
mov eax, dword [rbx]
add eax, esi
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x10], eax
mov ecx, dword [rax]
test ecx, ecx
je 0x40b074
mov ebx, dword [rsp + 0x14]
mov edi, edx
mov edx, dword [rbp + 0x34]
test ecx, ecx
jns 0x40b051
movzx eax, cx
jmp 0x40b056
lea eax, [rsi + 2]
add eax, ecx
push rax
push rbx
call rdx
mov dword [rdi], eax
add edi, 4
mov eax, dword [rsp + 0x10]
add eax, 4
mov dword [rsp + 0x10], eax
mov ecx, dword [rax]
test ecx, ecx
jne 0x40b045
mov ebx, dword [rsp + 0x18]
mov eax, dword [rbx + 0x20]
add ebx, 0x14
mov dword [rsp + 0x18], ebx
test eax, eax
jne 0x40b01e
mov edi, dword [rsp + 0x1c]
mov eax, dword [rdi + 0xe0]
test eax, eax
je 0x40b107
lea ebx, [rsi + 4]
add ebx, eax
mov dword [rsp + 0x10], ebx
mov eax, dword [rbx]
test eax, eax
je 0x40b107
add eax, esi
push rax
call qword [rbp + 0x30]
mov edx, dword [rbx + 8]
mov dword [rsp + 0x24], eax
add edx, esi
mov eax, dword [rbx + 0xc]
add eax, esi
mov dword [rsp + 0x14], edx
mov dword [rsp + 0x18], eax
mov ecx, dword [rax]
test ecx, ecx
je 0x40b0f6
mov ebx, dword [rsp + 0x24]
mov edi, edx
mov edx, dword [rbp + 0x34]
test ecx, ecx
jns 0x40b0d3
movzx eax, cx
jmp 0x40b0d8
lea eax, [rsi + 2]
add eax, ecx
push rax
push rbx
call rdx
mov dword [rdi], eax
add edi, 4
mov eax, dword [rsp + 0x18]
add eax, 4
mov dword [rsp + 0x18], eax
mov ecx, dword [rax]
test ecx, ecx
jne 0x40b0c7
mov ebx, dword [rsp + 0x10]
add ebx, 0x20
mov dword [rsp + 0x10], ebx
mov eax, dword [rbx]
test eax, eax
jne 0x40b09f
mov edi, dword [rsp + 0x1c]
mov eax, dword [rdi + 0xa0]
test eax, eax
je 0x40b186
lea ebx, [rax + rsi]
mov eax, esi
sub eax, dword [rdi + 0x34]
mov dword [rsp + 0x14], eax
xor eax, eax
cmp dword [rbx], eax
je 0x40b186
lea ecx, [rbx + 8]
jmp 0x40b171
movzx eax, word [rcx]
mov edx, eax
and eax, 0xf000
mov dword [rsp + 0x10], edx
cmp ax, word [rsp + 0x28]
jne 0x40b160
mov eax, edx
and eax, 0xfff
mov dword [rsp + 0x10], eax
add eax, dword [rbx]
mov ecx, dword [rax + rsi]
add ecx, dword [rsp + 0x14]
mov eax, dword [rsp + 0x10]
add eax, dword [rbx]
mov dword [rax + rsi], ecx
mov ecx, dword [rsp + 0x1c]
jmp 0x40b16e
mov eax, 0x1000
cmp dx, ax
jae 0x40b2b0
add ecx, 2
mov eax, dword [rbx + 4]
add eax, ebx
mov dword [rsp + 0x1c], ecx
cmp ecx, eax
jne 0x40b128
xor eax, eax
mov ebx, ecx
cmp dword [rcx], eax
jne 0x40b123
mov ebx, dword [rdi + 0xc0]
test ebx, ebx
je 0x40b1b6
mov ebx, dword [rbx + rsi + 0xc]
test ebx, ebx
je 0x40b1b6
mov eax, dword [rbx]
test eax, eax
je 0x40b1b6
xor ebp, ebp
push rbp
push 1
push rsi
call rax
lea ebx, [rbx + 4]
mov eax, dword [rbx]
test eax, eax
jne 0x40b1a0
mov ebp, dword [rsp + 0xf0]
mov ebx, dword [rsp + 0x20]
mov eax, dword [rdi + 0x28]
add eax, esi
cmp dword [rbx], 3
jne 0x40b2ae
xor ecx, ecx
push rcx
push 1
push qword [rsp + 0x34]
call rax
lea edx, [rbx + 0x604]
xor eax, eax
mov dword [rsp + 0x2c], edx
cmp word [rdx], ax
je 0x40b2b0
mov ecx, dword [rdi + 0x78]
test ecx, ecx
je 0x40b2b0
mov edi, dword [rcx + rsi + 0x18]
test edi, edi
je 0x40b2b0
mov eax, dword [rcx + rsi + 0x1c]
lea ebx, [rdi - 1]
add eax, esi
mov dword [rsp + 0x14], eax
mov eax, dword [rcx + rsi + 0x20]
mov ecx, dword [rcx + rsi + 0x24]
add eax, esi
add ecx, esi
mov dword [rsp + 0x28], ecx
lea ebx, [rax + rbx*4]
mov eax, dword [rbx]
push rdx
add eax, esi
push rax
call fcn.0040b5f0
pop rcx
pop rcx
test eax, eax
je 0x40b23e
sub ebx, 4
sub edi, 1
je 0x40b2b0
mov edx, dword [rsp + 0x2c]
jmp 0x40b21f
mov eax, dword [rsp + 0x28]
mov ebx, dword [rsp + 0x14]
movzx eax, word [rax + rdi*2 - 2]
mov ebx, dword [rbx + rax*4]
add ebx, esi
je 0x40b2b0
push 0x40
mov eax, 0x3000
push rax
push 0xbc
xor eax, eax
push rax
call qword [rbp + 0x3c]
mov edi, eax
test edi, edi
je 0x40b2b0
push 0xbc
lea eax, [rsp + 0x34]
push rax
push rdi
call fcn.0040b843
mov ecx, dword [rsp + 0x2c]
lea eax, [rcx + 0x808]
push rax
push qword [rcx + 0x804]
push rbx
call rdi
push 0xbc
xor eax, eax
push rax
push rdi
call fcn.0040b867
add esp, 0x24
xor eax, eax
push 0xc000
push rax
push rdi
call qword [rbp + 0x40]
jmp 0x40b2b0
call rax
push 0xc000
xor edx, edx
push rdx
push rsi
call qword [rbp + 0x40]
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0xdc
ret