Function at 0x5ad590
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5eab03
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x632da0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
lea ecx, [esp + 0x8c]
call fcn.005083d0
lea ecx, [esp + 0xcc]
mov dword [esp + 0x128], 0
call fcn.005083d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea ecx, [ebx + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x4c], ecx
push eax
mov ecx, ebx
mov byte [esp + 0x12c], 1
call edx
mov esi, dword [eax + 4]
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [eax]
lea ecx, [ebx + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x80], esi
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
lea ecx, [esi + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esi]
lea ecx, [esp + 0x10c]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x28]
push ecx
mov ecx, esi
call edx
mov edi, dword [eax + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x114]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x58]
lea ecx, [esi + 0xc]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x70], eax
mov dword [esp + 0x30], eax
mov ax, word [ebx + 0x20]
mov dword [esp + 0x88], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], ecx
mov dx, word [esi + 0x20]
xor ecx, ecx
and ax, 0xfff9
cmp ax, 1
setne cl
and dx, 0xfff9
mov eax, ecx
xor ecx, ecx
cmp dx, 1
setne cl
push eax
lea edx, [esp + 0x48]
lea eax, [esp + 0x80]
mov edi, ecx
mov ecx, dword [ebx + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0xa0]
call fcn.00508a20
mov eax, dword [esi + 0x1c]
push edi
push eax
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xe0]
call fcn.00508a20
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x98]
call fcn.00508b30
mov edi, eax
test edi, edi
jne 0x5ada61
movzx eax, word [ebx + 0x20]
test al, 2
jne 0x5ad787
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5ad8a0
movzx eax, word [esi + 0x20]
test al, 2
jne 0x5ad79d
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5ad830
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x94]
call fcn.00508310
test eax, eax
je 0x5ad7cf
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov edi, 1
mov dword [eax + 4], ecx
jmp 0x5adcc8
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd4]
call fcn.00508310
test eax, eax
je 0x5ad801
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov edi, 1
mov dword [eax + 4], ecx
jmp 0x5adcc8
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00455e10
test eax, eax
je 0x5adcc8
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov edi, 1
mov dword [eax + 4], ecx
jmp 0x5adcc8
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x94]
call fcn.00508310
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x5ad859
mov ecx, dword [esp + 0x18]
push esi
call fcn.00455e10
test eax, eax
je 0x5ad86b
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov esi, dword [esi + 4]
mov edi, 1
mov dword [eax + 4], esi
push 0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xd4]
call fcn.00508310
test eax, eax
je 0x5adcb4
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
lea eax, [eax + edi*8]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
inc edi
mov dword [eax + 4], ecx
jmp 0x5adcb4
movzx eax, word [esi + 0x20]
test al, 2
jne 0x5ad8b2
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5ad924
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd4]
call fcn.00508310
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x5ad8dd
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00455e10
test eax, eax
je 0x5ad8ef
mov edx, dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov esi, dword [esi + 4]
mov edi, 1
mov dword [eax + 4], esi
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x94]
call fcn.00508310
test eax, eax
je 0x5adcb4
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + edi*8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
inc edi
mov dword [eax + 4], ecx
jmp 0x5adcb4
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x94]
call fcn.00508310
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x5ad951
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov edi, 1
mov dword [esi + 4], eax
push 0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xd4]
call fcn.00508310
test eax, eax
je 0x5ad97a
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [esi + edi*8]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
inc edi
mov dword [eax + 4], ecx
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x94]
call fcn.00508310
test eax, eax
je 0x5ad9a3
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
lea eax, [esi + edi*8]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
inc edi
mov dword [eax + 4], ecx
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xd4]
call fcn.00508310
test eax, eax
mov eax, dword [esp + 0x18]
je 0x5ad9cc
mov edx, dword [eax]
lea ecx, [esi + edi*8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
inc edi
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
cmp edx, dword [ecx]
jne 0x5ad9e6
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 4]
cmp edx, dword [ecx + 4]
je 0x5ad9fc
mov eax, dword [esp + 0x1c]
push eax
call fcn.00455e10
test eax, eax
mov eax, dword [esp + 0x18]
je 0x5ada0e
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
lea edx, [esi + edi*8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
inc edi
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x5ada2e
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x5ada2e
mov edx, dword [eax]
lea esi, [esi + edi*8]
mov dword [esi], edx
mov ecx, dword [eax + 4]
inc edi
mov dword [esi + 4], ecx
cmp edi, 1
jne 0x5adcb4
mov esi, dword [ebp + 0x10]
push eax
mov ecx, esi
call fcn.00455e10
test eax, eax
jne 0x5ada5a
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.00455e10
test eax, eax
je 0x5adcc8
xor edi, edi
jmp 0x5adcc8
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [eax + 4], edx
cmp edi, 1
jne 0x5adca6
movzx eax, word [ebx + 0x20]
test al, 2
jne 0x5ada8c
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5adb03
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x94]
call fcn.00508310
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x5adaeb
mov ecx, dword [esp + 0x18]
push esi
call fcn.00455e10
test eax, eax
jne 0x5adaeb
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0xd4]
call fcn.00508310
test eax, eax
je 0x5adcc8
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 4]
mov edi, 2
mov dword [eax + 0xc], ecx
jmp 0x5adcb9
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov esi, dword [esi + 4]
mov edi, 2
mov dword [eax + 0xc], esi
jmp 0x5adcb9
movzx eax, word [esi + 0x20]
test al, 2
jne 0x5adb15
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5adb72
push 0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xd4]
call fcn.00508310
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x5adaeb
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.00455e10
test eax, eax
jne 0x5adaeb
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x94]
call fcn.00508310
test eax, eax
je 0x5adcc8
mov edx, dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov esi, dword [esi + 4]
mov edi, 2
mov dword [eax + 0xc], esi
jmp 0x5adcb9
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x94]
call fcn.00508310
test eax, eax
je 0x5adba2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
add eax, 8
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
jmp 0x5adc89
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd4]
call fcn.00508310
test eax, eax
je 0x5adbd2
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
add eax, 8
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
jmp 0x5adc89
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x94]
call fcn.00508310
test eax, eax
je 0x5adc02
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
add eax, 8
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
jmp 0x5adc89
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xd4]
call fcn.00508310
test eax, eax
je 0x5adc2f
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
add eax, 8
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
jmp 0x5adc89
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00455e10
test eax, eax
jne 0x5adc79
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00455e10
test eax, eax
jne 0x5adc79
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.00455e10
test eax, eax
je 0x5adcc8
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
add eax, 8
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
jmp 0x5adc89
mov eax, dword [ebp + 0x10]
mov edx, dword [esi]
add eax, 8
mov dword [eax], edx
mov esi, dword [esi + 4]
mov dword [eax + 4], esi
push eax
mov eax, dword [ebp + 0x10]
push eax
mov edi, 2
call fcn.004fbee0
add esp, 8
test eax, eax
je 0x5adcb9
mov edi, 1
jmp 0x5adcc8
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp edi, 2
jne 0x5adcc8
mov eax, dword [ebp + 0x10]
push ebx
push 2
push eax
call fcn.0052b7a0
add esp, 0xc
lea ecx, [esp + 0xcc]
mov byte [esp + 0x128], 0
call fcn.00508430
lea ecx, [esp + 0x8c]
mov dword [esp + 0x128], 0xffffffff
call fcn.00508430
mov eax, edi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret