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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f0473
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
lea ecx, [esp + 0x8c]
call fcn.0050ad30
lea ecx, [esp + 0xcc]
mov dword [esp + 0x128], 0
call fcn.0050ad30
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.0050b390
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.0050b390
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x98]
call fcn.0050b4a0
mov edi, eax
test edi, edi
jne 0x5b2281
movzx eax, word [ebx + 0x20]
test al, 2
jne 0x5b1fa7
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5b20c0
movzx eax, word [esi + 0x20]
test al, 2
jne 0x5b1fbd
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5b2050
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x94]
call fcn.0050ac40
test eax, eax
je 0x5b1fef
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 0x5b24e8
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050ac40
test eax, eax
je 0x5b2021
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 0x5b24e8
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00456a80
test eax, eax
je 0x5b24e8
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 0x5b24e8
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x94]
call fcn.0050ac40
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x5b2079
mov ecx, dword [esp + 0x18]
push esi
call fcn.00456a80
test eax, eax
je 0x5b208b
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.0050ac40
test eax, eax
je 0x5b24d4
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 0x5b24d4
movzx eax, word [esi + 0x20]
test al, 2
jne 0x5b20d2
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5b2144
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050ac40
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x5b20fd
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00456a80
test eax, eax
je 0x5b210f
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.0050ac40
test eax, eax
je 0x5b24d4
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 0x5b24d4
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x94]
call fcn.0050ac40
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x5b2171
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.0050ac40
test eax, eax
je 0x5b219a
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.0050ac40
test eax, eax
je 0x5b21c3
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.0050ac40
test eax, eax
mov eax, dword [esp + 0x18]
je 0x5b21ec
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 0x5b2206
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 4]
cmp edx, dword [ecx + 4]
je 0x5b221c
mov eax, dword [esp + 0x1c]
push eax
call fcn.00456a80
test eax, eax
mov eax, dword [esp + 0x18]
je 0x5b222e
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 0x5b224e
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x5b224e
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 0x5b24d4
mov esi, dword [ebp + 0x10]
push eax
mov ecx, esi
call fcn.00456a80
test eax, eax
jne 0x5b227a
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.00456a80
test eax, eax
je 0x5b24e8
xor edi, edi
jmp 0x5b24e8
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 0x5b24c6
movzx eax, word [ebx + 0x20]
test al, 2
jne 0x5b22ac
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5b2323
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x94]
call fcn.0050ac40
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x5b230b
mov ecx, dword [esp + 0x18]
push esi
call fcn.00456a80
test eax, eax
jne 0x5b230b
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0xd4]
call fcn.0050ac40
test eax, eax
je 0x5b24e8
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 0x5b24d9
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 0x5b24d9
movzx eax, word [esi + 0x20]
test al, 2
jne 0x5b2335
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5b2392
push 0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xd4]
call fcn.0050ac40
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x5b230b
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.00456a80
test eax, eax
jne 0x5b230b
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x94]
call fcn.0050ac40
test eax, eax
je 0x5b24e8
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 0x5b24d9
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x94]
call fcn.0050ac40
test eax, eax
je 0x5b23c2
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 0x5b24a9
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050ac40
test eax, eax
je 0x5b23f2
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 0x5b24a9
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x94]
call fcn.0050ac40
test eax, eax
je 0x5b2422
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 0x5b24a9
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050ac40
test eax, eax
je 0x5b244f
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 0x5b24a9
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00456a80
test eax, eax
jne 0x5b2499
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00456a80
test eax, eax
jne 0x5b2499
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.00456a80
test eax, eax
je 0x5b24e8
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 0x5b24a9
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.004fa8a0
add esp, 8
test eax, eax
je 0x5b24d9
mov edi, 1
jmp 0x5b24e8
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp edi, 2
jne 0x5b24e8
mov eax, dword [ebp + 0x10]
push ebx
push 2
push eax
call fcn.0052f650
add esp, 0xc
lea ecx, [esp + 0xcc]
mov byte [esp + 0x128], 0
call fcn.0050ad90
lea ecx, [esp + 0x8c]
mov dword [esp + 0x128], 0xffffffff
call fcn.0050ad90
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