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

Disassembly:
sub esp, 0x278
push rbx
push rbp
push rsi
mov esi, dword [rsp + 0x28c]
xor eax, eax
push rdi
lea edi, [rsp + 0x44]
xor ebp, ebp
and dword [rsp + 0x1c], ebp
stosd dword [rdi], eax
stosd dword [rdi], eax
stosd dword [rdi], eax
stosd dword [rdi], eax
xor eax, eax
cmp dword [rsi], 2
mov word [rsp + 0x18], ax
jne 0x4591e1
mov eax, dword [rsp + 0x294]
mov ecx, dword [rax + 0x14]
lea edi, [rax + 0x1c]
push rdi
push rcx
mov eax, dword [rcx]
call qword [rax + 0x40]
test eax, eax
js 0x4591da
mov eax, dword [rdi]
lea edx, [rsp + 0x1c]
push rdx
push rax
mov ecx, dword [rax]
call qword [rcx + 0x48]
test eax, eax
js 0x459352
mov ebx, dword [rsp + 0x28c]
lea eax, [rsp + 0x2c]
push rax
push 1
push qword [rsp + 0x24]
call qword [rbx + 0x7c]
lea eax, [rsp + 0x28]
push rax
push 1
push qword [rsp + 0x24]
call qword [rbx + pe_nt_image_headers64]
mov eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x2c]
add eax, 1
je 0x459197
push 1
push rbp
push 0xc
call qword [rbx + 0x70]
add esi, 0x40c
mov ebp, eax
cmp byte [rsi], 0
je 0x459150
lea eax, [rsp + 0x84]
push rax
push rsi
push rbx
call fcn.00459c08
add esp, 0xc
lea eax, [rsp + 0x14]
push rax
lea eax, [rsp + 0x88]
push rax
call qword [rbx + 0x68]
push qword [rsp + 0x14]
mov esi, eax
mov eax, 0x2008
push 0
push 8
mov word [rsp + 0x40], ax
call qword [rbx + 0x70]
xor ecx, ecx
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x10], ecx
cmp dword [rsp + 0x14], ecx
jbe 0x459184
push qword [rsi + rcx*4]
call qword [rbx + 0x84]
push rax
lea eax, [rsp + 0x14]
push rax
push qword [rsp + 0x44]
call qword [rbx + 0x74]
mov ecx, dword [rsp + 0x10]
mov dword [r12 + 0x10], ecx
cmp ecx, dword [rsp + 0x14]
jb 0x459129
jmp 0x459184
push 1
push 0
mov eax, 0x2008
push 8
mov word [rsp + 0x40], ax
call qword [rbx + 0x70]
and dword [rsp + 0x10], 0
mov dword [rsp + 0x3c], eax
lea eax, [rsp + 0x18]
push rax
call qword [rbx + 0x84]
push rax
lea eax, [rsp + 0x14]
push rax
push qword [rsp + 0x44]
call qword [rbx + 0x74]
and dword [rsp + 0x10], 0
lea eax, [rsp + 0x34]
push rax
lea eax, [rsp + 0x14]
push rax
push rbp
call qword [rbx + 0x74]
and dword [rsp + 0x4c], 0
lea edx, [rsp + 0x64]
push rdx
xor eax, eax
lea esi, [rsp + 0x48]
mov word [rsp + 0x48], ax
mov eax, dword [rdi]
push rbp
sub esp, 0x10
mov edi, esp
mov ecx, dword [rax]
push rax
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
call qword [rcx + 0x94]
test ebp, ebp
je 0x459352
push qword [rsp + 0x3c]
call qword [rbx + 0x78]
push rbp
call qword [rbx + 0x78]
jmp 0x459352
and dword [rdi], ebp
jmp 0x459352
mov ebx, dword [rsp + 0x28c]
lea eax, [rsp + 0x84]
push rax
lea eax, [rsi + 0x20c]
push rax
push rbx
call fcn.00459c08
add esp, 0xc
lea eax, [rsp + 0x84]
push rax
call qword [rbx + 0x84]
mov ebp, eax
mov dword [rsp + 0x20], ebp
test ebp, ebp
je 0x459355
lea eax, [rsp + 0x84]
push rax
lea eax, [rsi + 0x30c]
push rax
push rbx
call fcn.00459c08
add esp, 0xc
lea eax, [rsp + 0x84]
push rax
call qword [rbx + 0x84]
mov dword [rsp + 0x24], eax
test eax, eax
je 0x45934b
mov ecx, dword [rsp + 0x294]
mov edx, dword [rcx + 0x14]
lea eax, [rcx + 0x18]
push rax
push rbp
push rdx
mov ecx, dword [rdx]
mov dword [rsp + 0x3c], eax
call qword [rcx + 0x44]
mov edi, eax
test edi, edi
js 0x459340
add esi, 0x40c
xor ebp, ebp
cmp byte [rsi], 0
je 0x4592fc
lea eax, [rsp + 0x84]
push rax
push rsi
push rbx
call fcn.00459c08
add esp, 0xc
lea eax, [rsp + 0x14]
push rax
lea eax, [rsp + 0x88]
push rax
call qword [rbx + 0x68]
push qword [rsp + 0x14]
mov esi, eax
push rbp
push 0xc
call qword [rbx + 0x70]
mov ebp, eax
test ebp, ebp
je 0x4592fc
xor ecx, ecx
mov dword [rsp + 0x10], ecx
cmp dword [rsp + 0x14], ecx
jbe 0x4592fc
push qword [rsi + rcx*4]
call qword [rbx + 0x84]
push 8
mov dword [rsp + 0x60], eax
pop rax
mov word [rsp + 0x54], ax
lea eax, [rsp + 0x54]
push rax
lea eax, [rsp + 0x14]
push rax
push rbp
call qword [rbx + 0x74]
mov edi, eax
test edi, edi
jns 0x4592ed
push rbp
call qword [rbx + 0x78]
xor ebp, ebp
mov ecx, dword [rsp + 0x10]
mov dword [r12 + 0x10], ecx
cmp ecx, dword [rsp + 0x14]
jb 0x4592be
test edi, edi
js 0x45933c
mov eax, dword [rsp + 0x30]
lea edx, [rsp + 0x74]
push rdx
push rbp
sub esp, 0x10
lea esi, [rsp + 0x5c]
mov eax, dword [rax]
mov edi, esp
push 0
mov ecx, dword [rax]
movsd dword [rdi], dword [rsi]
push 0x118
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
mov esi, dword [rsp + 0x44]
push rsi
push rax
call qword [rcx + 0xe4]
test ebp, ebp
je 0x459336
push rbp
call qword [rbx + 0x78]
mov ebp, dword [rsp + 0x20]
jmp 0x459344
mov ebp, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
push rsi
call qword [rbx + 0x88]
push rbp
call qword [rbx + 0x88]
xor eax, eax
pop rdi
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0x278
ret