Function at 0x50d400
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x533d10
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x55eb68]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55eb68]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa8]
push 0x20
mov esi, ecx
push 0xe
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], ebx
call fcn.00504bc0
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
sar ecx, 1
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
sar ecx, 1
shr ecx, 1
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x34]
sub ecx, dword [ebx + 0x30]
sar ecx, 1
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x24]
mov dword [eax + 0x14], ecx
mov edx, dword [ebx + 0x28]
mov dword [eax + 0x18], edx
mov edi, dword [esi]
test dword [edi + 0x18], 0x100000
je 0x50d4ca
mov edi, dword [esi + 0x34]
mov ebp, edi
and ebp, ecx
cmp ebp, edi
je 0x50d4a4
mov edi, dword [esi + 0x38]
mov ebp, edi
and ebp, ecx
cmp ebp, edi
jne 0x50d4ac
mov edi, dword [esi + 0x3c]
or edi, ecx
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 0x34]
mov edi, ecx
and edi, edx
cmp edi, ecx
je 0x50d4c2
mov ecx, dword [esi + 0x38]
mov edi, ecx
and edi, edx
cmp edi, ecx
jne 0x50d4ca
mov ecx, dword [esi + 0x3c]
or ecx, edx
mov dword [eax + 0x18], ecx
mov cl, byte [ebx + 0x20]
mov byte [eax + 0x1c], cl
mov cl, byte [ebx + 0x21]
test cl, cl
sete dl
mov byte [eax + 0x1d], dl
mov ecx, dword [esi]
sub eax, dword [ecx + 0x13c]
mov edi, dword [ebx]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
cmp edi, eax
je 0x50d59c
jmp 0x50d500
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov ecx, dword [esi + 0x138]
xor edx, edx
cmp byte [edi + 1], dl
setne dl
lea ebp, [edx + 2]
mov edx, dword [esi + 0x140]
sub ecx, edx
cmp ecx, ebp
jae 0x50d536
sub edx, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
add edx, ebp
call fcn.00516100
mov eax, dword [esi + 0x140]
lea edx, [eax + ebp]
mov dword [esi + 0x140], edx
mov esi, dword [esp + 0x18]
cmp byte [esi + 0xc], 0
mov edx, dword [esp + 0x18]
mov cl, byte [edi]
mov edx, dword [edx + 4]
je 0x50d564
mov edx, dword [edx]
movzx ecx, cl
mov cl, byte [ecx + edx + 0x104]
mov byte [eax], cl
mov cl, byte [edi + 1]
test cl, cl
je 0x50d58b
cmp byte [esi + 0xc], 0
mov edx, dword [esi + 4]
je 0x50d582
mov edx, dword [edx]
movzx ecx, cl
mov cl, byte [ecx + edx + 0x104]
mov byte [eax + 1], cl
mov byte [eax + 2], 0
jmp 0x50d58f
mov byte [eax + 1], 0
add edi, 2
cmp edi, dword [esp + 0x24]
jne 0x50d500
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp eax, ecx
je 0x50dc1a
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov al, byte [esi + 0xc]
mov dl, byte [edi]
mov bl, byte [edi + 1]
mov ebp, dword [esi + 4]
test al, al
je 0x50d5d6
mov ecx, dword [ebp]
movzx edx, dl
mov dl, byte [edx + ecx + 0x104]
mov byte [esp + 0x30], dl
test al, al
je 0x50d5ed
mov ecx, dword [ebp]
movzx edx, bl
mov dl, byte [edx + ecx + 0x104]
jmp 0x50d5ef
mov dl, bl
mov cl, byte [edi + 3]
mov bl, dl
mov dl, byte [edi + 2]
mov byte [esp + 0x31], bl
test al, al
je 0x50d610
mov esi, dword [ebp]
movzx edx, dl
mov dl, byte [edx + esi + 0x104]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x28], dl
test al, al
je 0x50d627
mov eax, dword [ebp]
movzx ecx, cl
mov al, byte [ecx + eax + 0x104]
jmp 0x50d629
mov al, cl
add edi, 4
mov dword [esp + 0x20], edi
mov ecx, 0xf
xor edi, edi
mov byte [esp + 0x29], al
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
mov dword [esp + 0xa0], edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
mov esi, dword [esi]
test dword [esi + 0x18], 0x200000
mov byte [esp + 0xa0], 1
je 0x50d93e
mov cl, byte [esp + 0x30]
mov byte [esp + 0x1d], al
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1e], 0
lea eax, [esp + 0x16]
test bl, bl
jne 0x50d69d
lea eax, [esp + 0x15]
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, ebp
call fcn.00505280
mov esi, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 2
mov ebx, 0x10
cmp ecx, esi
je 0x50d726
cmp dword [esp + 0x54], ebx
jb 0x50d6dc
mov edx, dword [esp + 0x40]
push edx
call fcn.00517fcb
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
cmp dword [esi + 0x14], ebx
jae 0x50d708
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.005170b0
add esp, 0xc
jmp 0x50d710
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x50], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x54], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
jmp 0x50d72b
mov ebp, 0xf
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x8c], ebx
jb 0x50d749
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00517fcb
add esp, 4
cmp byte [esp + 0x1d], 0
lea eax, [esp + 0x1e]
jne 0x50d758
lea eax, [esp + 0x1d]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.00505280
mov esi, eax
lea edx, [esp + 0x5c]
mov byte [esp + 0xa0], 3
cmp edx, esi
je 0x50d7da
cmp dword [esp + 0x70], ebx
jb 0x50d797
mov eax, dword [esp + 0x5c]
push eax
call fcn.00517fcb
add esp, 4
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
cmp dword [esi + 0x14], ebx
jae 0x50d7be
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0x60]
push esi
push ecx
call fcn.005170b0
add esp, 0xc
jmp 0x50d7c6
mov edx, dword [esi]
mov dword [esp + 0x5c], edx
mov dword [esi], edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x6c], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x70], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x8c], ebx
jb 0x50d7f8
mov edx, dword [esp + 0x78]
push edx
call fcn.00517fcb
add esp, 4
mov ebx, dword [esp + 0x50]
cmp ebx, edi
jne 0x50d896
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], 1
mov word [esp + 0x78], 0
mov esi, 0x10
mov byte [esp + 0xa0], 4
cmp dword [esp + 0x54], esi
jb 0x50d83d
mov eax, dword [esp + 0x40]
push eax
call fcn.00517fcb
add esp, 4
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
cmp dword [esp + 0x8c], esi
jae 0x50d870
mov eax, dword [esp + 0x88]
inc eax
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.005170b0
add esp, 0xc
jmp 0x50d878
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
mov byte [esp + 0xa0], 1
mov esi, dword [esp + 0x6c]
cmp esi, edi
jne 0x50dab4
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], 1
mov word [esp + 0x78], 0
cmp dword [esp + 0x70], 0x10
mov byte [esp + 0xa0], 5
jb 0x50d8db
mov edx, dword [esp + 0x5c]
push edx
call fcn.00517fcb
mov ebx, dword [esp + 0x54]
add esp, 4
cmp dword [esp + 0x8c], 0x10
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
jae 0x50d913
mov eax, dword [esp + 0x88]
inc eax
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.005170b0
mov ebx, dword [esp + 0x5c]
add esp, 0xc
jmp 0x50d91b
mov edx, dword [esp + 0x78]
mov dword [esp + 0x5c], edx
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
mov byte [esp + 0xa0], 1
jmp 0x50dab4
test bl, bl
je 0x50d992
mov ecx, dword [esp + 0x30]
push ecx
push 1
push edi
lea ecx, [esp + 0x4c]
call fcn.00409270
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov eax, edx
cmp ecx, 0x10
jae 0x50d966
lea eax, [esp + 0x40]
add eax, dword [esp + 0x50]
cmp ecx, 0x10
mov ecx, edx
jae 0x50d975
lea ecx, [esp + 0x40]
cmp eax, edi
jne 0x50d97d
xor eax, eax
jmp 0x50d97f
sub eax, ecx
mov edx, dword [esp + 0x31]
push edx
push 1
push eax
lea ecx, [esp + 0x4c]
call fcn.00409270
jmp 0x50d9f8
mov al, byte [esp + 0x30]
mov dword [esp + 0x8c], ecx
mov byte [esp + 0x78], al
mov dword [esp + 0x88], 1
mov byte [esp + 0x79], 0
mov dword [esp + 0x54], ecx
push 2
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0xac], 6
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
call fcn.005170b0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov byte [esp + 0xa0], 1
cmp byte [esp + 0x29], 0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
mov eax, edx
je 0x50da74
cmp ecx, 0x10
jae 0x50da12
lea eax, [esp + 0x5c]
add eax, dword [esp + 0x6c]
cmp ecx, 0x10
mov ecx, edx
jae 0x50da21
lea ecx, [esp + 0x5c]
cmp eax, edi
jne 0x50da29
xor eax, eax
jmp 0x50da2b
sub eax, ecx
mov edx, dword [esp + 0x28]
push edx
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.00409270
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov eax, edx
cmp ecx, 0x10
jae 0x50da4f
lea eax, [esp + 0x5c]
add eax, dword [esp + 0x6c]
cmp ecx, 0x10
mov ecx, edx
jae 0x50da5e
lea ecx, [esp + 0x5c]
cmp eax, edi
jne 0x50da6b
mov ecx, dword [esp + 0x29]
xor eax, eax
push ecx
jmp 0x50da9b
sub eax, ecx
mov ecx, dword [esp + 0x29]
push ecx
jmp 0x50da9b
cmp ecx, 0x10
jae 0x50da7d
lea eax, [esp + 0x5c]
add eax, dword [esp + 0x6c]
cmp ecx, 0x10
mov ecx, edx
jae 0x50da8c
lea ecx, [esp + 0x5c]
cmp eax, edi
jne 0x50da94
xor eax, eax
jmp 0x50da96
sub eax, ecx
mov edx, dword [esp + 0x28]
push edx
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.00409270
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x50]
mov ebp, 0xf
cmp dword [esp + 0x54], 0x10
mov edx, dword [esp + 0x40]
jae 0x50dac3
lea edx, [esp + 0x40]
mov ecx, esi
cmp esi, ebx
jb 0x50dacb
mov ecx, ebx
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x50dada
lea eax, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.00401040
add esp, 0xc
cmp eax, edi
jne 0x50dafb
cmp esi, ebx
jae 0x50daf2
or eax, 0xffffffff
jmp 0x50daf9
xor eax, eax
cmp esi, ebx
setne al
cmp eax, edi
setl al
test al, al
jne 0x50dce7
mov eax, dword [esp + 0x18]
lea edi, [esi + ebx + 2]
mov esi, dword [eax]
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x138]
sub ecx, eax
cmp ecx, edi
jae 0x50db37
mov edx, edi
sub edx, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
add edx, eax
call fcn.00516100
mov ebp, dword [esi + 0x140]
add edi, ebp
mov dword [esi + 0x140], edi
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov ebx, 0x10
mov edx, eax
cmp ecx, ebx
jae 0x50db5c
lea edx, [esp + 0x40]
mov edi, dword [esp + 0x50]
add edi, edx
cmp ecx, ebx
jae 0x50db6a
lea eax, [esp + 0x40]
mov ecx, ebp
cmp eax, edi
je 0x50db7a
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x50db70
mov eax, dword [esp + 0x50]
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
lea ebp, [ecx + ebp + 1]
mov ecx, dword [esp + 0x70]
mov edx, eax
cmp ecx, ebx
jae 0x50db9c
lea edx, [esp + 0x5c]
mov edi, dword [esp + 0x6c]
add edi, edx
cmp ecx, ebx
jae 0x50dbaa
lea eax, [esp + 0x5c]
mov ecx, ebp
cmp eax, edi
je 0x50dbba
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x50dbb0
mov eax, dword [esp + 0x6c]
mov byte [eax + ebp], 0
cmp dword [esp + 0x70], ebx
jb 0x50dbd5
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00517fcb
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x54], ebx
jb 0x50dc08
mov edx, dword [esp + 0x40]
push edx
call fcn.00517fcb
add esp, 4
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], eax
jne 0x50d5b2
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x50debc
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov edx, dword [esp + 0x20]
mov al, byte [edx + 1]
mov ebx, dword [esp + 0x18]
lea ecx, [edx + 1]
mov dword [esp + 0xa0], 7
test al, al
je 0x50dd64
mov cl, byte [edx]
lea edx, [esp + 0x16]
mov byte [esp + 0x15], al
push edx
mov byte [esp + 0x18], cl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [ebx + 4]
mov byte [esp + 0x22], 0
call fcn.0050adc0
mov esi, eax
lea edx, [esp + 0x40]
mov byte [esp + 0xa0], 8
lea ebp, [edi + 1]
cmp edx, esi
je 0x50dd45
cmp dword [esp + 0x54], ebp
jb 0x50dcbc
mov eax, dword [esp + 0x40]
push eax
call fcn.00517fcb
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
cmp dword [esi + 0x14], ebp
jae 0x50dd23
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.005170b0
add esp, 0xc
jmp 0x50dd2f
cmp dword [esp + 0x70], 0x10
jb 0x50dcfb
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00517fcb
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
jb 0x50dd1c
mov edx, dword [esp + 0x40]
push edx
call fcn.00517fcb
add esp, 4
xor eax, eax
jmp 0x50decf
mov edx, dword [esi]
mov dword [esp + 0x40], edx
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esi + 0x14]
xor eax, eax
mov dword [esp + 0x54], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [esp + 0xa0], 7
cmp dword [esp + 0x8c], ebp
jb 0x50de0b
mov edx, dword [esp + 0x78]
push edx
jmp 0x50de03
push ecx
mov ecx, dword [ebx + 4]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.0050adc0
mov esi, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 9
mov ebp, 0x10
cmp ecx, esi
je 0x50dded
cmp dword [esp + 0x54], ebp
jb 0x50dda0
mov edx, dword [esp + 0x40]
push edx
call fcn.00517fcb
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
cmp dword [esi + 0x14], ebp
jae 0x50ddcb
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.005170b0
add esp, 0xc
jmp 0x50ddd7
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
mov dword [esi], 0
mov edx, dword [esi + 0x10]
mov dword [esp + 0x50], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [esp + 0xa0], 7
cmp dword [esp + 0x8c], ebp
jb 0x50de0b
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00517fcb
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x50def9
mov esi, dword [ebx]
mov edx, dword [esi + 0x140]
lea edi, [eax + 1]
mov eax, dword [esi + 0x138]
sub eax, edx
cmp eax, edi
jae 0x50de41
sub edx, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
add edx, edi
call fcn.00516100
mov ebp, dword [esi + 0x140]
lea ecx, [edi + ebp]
mov dword [esi + 0x140], ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov edx, eax
cmp ecx, 0x10
jae 0x50de63
lea edx, [esp + 0x40]
mov edi, dword [esp + 0x50]
add edi, edx
cmp ecx, 0x10
jae 0x50de72
lea eax, [esp + 0x40]
mov ecx, ebp
cmp eax, edi
je 0x50de82
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x50de78
mov eax, dword [esp + 0x50]
add dword [esp + 0x20], 2
mov byte [eax + ebp], 0
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0xa0], 0xffffffff
jb 0x50deae
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00517fcb
add esp, 4
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x24]
jne 0x50dc30
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x13c]
add eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00516d3a
add esp, 0x90
ret 8
cmp dword [esp + 0x54], ebp
jb 0x50dd1c
mov eax, dword [esp + 0x40]
push eax
call fcn.00517fcb
add esp, 4
xor eax, eax
jmp 0x50decf