Function at 0x1000537d
Capabilities:
Access peb ldr_data
Inspect section memory permissions
Parse pe header
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0xd33d4aed
mov dword [ebp - 0x88], eax
xor esi, esi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x84], eax
mov ebx, esi
push 3
pop eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x80], eax
push 4
pop eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x74], 6
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x58], 0xbc3f4d89
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x68], 0x534d8ae8
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x48], 0x8169adc3
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], ebx
call fcn.10005375
mov edi, eax
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x1000542a
mov eax, dword [edi + 0x3c]
lea ecx, [eax - 0x40]
cmp ecx, 0x3bf
ja 0x1000542a
cmp dword [eax + edi], 0x4550
je 0x1000542d
dec edi
jmp 0x10005409
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x34], 2
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x24], edx
test edx, edx
je 0x1000554b
mov edi, ebx
mov esi, dword [edx + 0x28]
xor ecx, ecx
mov dword [ebp - 4], esi
movzx ebx, word [edx + 0x24]
mov al, byte [esi]
ror ecx, 0xd
cmp al, 0x61
movzx eax, al
jb 0x10005471
add ecx, 0xffffffe0
add ecx, eax
add ebx, 0xffff
inc esi
mov dword [ebp - 4], esi
test bx, bx
jne 0x10005462
cmp ecx, 0x6a4abc5b
jne 0x10005568
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], ebx
push 2
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x78]
add ecx, ebx
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
add eax, ebx
add ecx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], ecx
mov edi, dword [ebp - 0x38]
pop ecx
mov edx, ecx
mov ecx, dword [eax]
add ecx, ebx
xor esi, esi
mov al, byte [ecx]
ror esi, 0xd
movsx eax, al
add esi, eax
inc ecx
mov al, byte [ecx]
test al, al
jne 0x100054c0
cmp esi, 0xec0e4e8e
je 0x100054df
cmp esi, 0x7c0dfcaa
jne 0x10005513
mov eax, dword [ebp - 0x18]
movzx ecx, word [edi]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
cmp esi, 0xec0e4e8e
jne 0x100054fd
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 0x28], eax
jmp 0x1000550d
cmp esi, 0x7c0dfcaa
jne 0x1000550d
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 0x2c], eax
add edx, 0xffff
mov eax, dword [ebp - 0x1c]
push 2
pop ecx
add eax, 4
add edi, ecx
mov dword [ebp - 0x1c], eax
test dx, dx
jne 0x100054b8
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
test edi, edi
je 0x10005539
cmp dword [ebp - 0x2c], 0
jne 0x10005546
mov edx, dword [edx]
mov dword [ebp - 0x24], edx
test edx, edx
jne 0x10005456
mov edi, dword [ebp - 0x20]
xor esi, esi
push 4
lea eax, [ebp - 0x88]
push eax
push ebx
call fcn.10005038
add esp, 0xc
test eax, eax
jne 0x10005578
xor eax, eax
jmp 0x100058b6
cmp ecx, 0x3cfa685d
jne 0x1000552c
mov ebx, dword [edx + 0x10]
mov dword [ebp - 0x14], ebx
jmp 0x1000552f
mov ebx, dword [edi + 0x3c]
add ebx, edi
push 4
push 0x3000
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x78]
push 0xffffffffffffffff
push eax
call fcn.10005193
add esp, 0x1c
test eax, eax
jne 0x10005561
inc eax
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0xffffffffffffffff
push eax
call fcn.100051ed
mov ecx, dword [ebx + 0x54]
add esp, 0x14
mov edx, dword [ebp - 8]
mov eax, edi
mov dword [ebp - 4], eax
test ecx, ecx
je 0x100055e4
mov al, byte [eax]
mov byte [edx], al
inc edx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
dec ecx
jne 0x100055d2
mov edx, dword [ebp - 8]
movzx eax, word [ebx + 6]
movzx ecx, word [ebx + 0x14]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1000563c
lea esi, [ebx + 0x2c]
mov ebx, eax
add esi, ecx
mov ecx, dword [esi - 8]
dec ebx
add ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [esi]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [esi - 4]
test eax, eax
je 0x1000562e
mov edx, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0xc], eax
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
inc ecx
inc edx
mov dword [ebp - 4], ecx
test eax, eax
jne 0x10005614
mov edx, dword [ebp - 8]
dec eax
add esi, 0x28
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x100055fa
mov ebx, dword [ebp - 0x14]
lea eax, [ebx + 0x80]
mov dword [ebp - 4], eax
mov esi, dword [eax]
add esi, edx
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
je 0x100056df
mov eax, dword [esi + 0xc]
add eax, edx
push eax
call dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov ebx, eax
test ebx, ebx
je 0x100056cd
mov eax, dword [esi]
add eax, edx
mov dword [ebp - 0xc], eax
mov edi, dword [esi + 0x10]
add edi, edx
cmp dword [edi], 0
je 0x100056cd
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x100056a1
mov ecx, dword [eax]
test ecx, ecx
jns 0x100056a1
mov eax, dword [ebx + 0x3c]
movzx ecx, cx
mov eax, dword [eax + ebx + 0x78]
sub ecx, dword [eax + ebx + 0x10]
mov eax, dword [eax + ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
jmp 0x100056af
mov eax, dword [edi]
add eax, edx
mov dword [ebp - 4], eax
add eax, 2
push eax
push ebx
call esi
push 4
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
pop ecx
add edi, ecx
test eax, eax
je 0x100056c2
add eax, ecx
mov dword [ebp - 0xc], eax
cmp dword [edi], 0
mov edx, dword [ebp - 8]
jne 0x1000567b
mov esi, dword [ebp - 0x1c]
add esi, 0x14
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
jne 0x10005655
mov ebx, dword [ebp - 0x14]
mov eax, edx
lea ecx, [ebx + 0xa0]
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100057aa
mov ecx, dword [ecx]
mov ebx, dword [ebp - 0x18]
add ecx, edx
mov dword [ebp - 0x24], ecx
mov esi, dword [ecx + 4]
test esi, esi
je 0x100057a7
mov edi, dword [ecx]
lea eax, [ecx + 8]
add esi, 0xfffffff8
mov dword [ebp - 0xc], eax
add edi, edx
shr esi, 1
je 0x1000578c
mov eax, dword [ebp - 0xc]
dec esi
mov dword [ebp - 4], esi
movzx ecx, word [eax]
mov ax, cx
shr ax, 0xc
cmp ax, 0xa
jne 0x10005746
and ecx, 0xfff
add dword [ecx + edi], ebx
jmp 0x10005779
push 3
pop edx
cmp ax, dx
je 0x1000573b
xor edx, edx
inc edx
cmp ax, dx
jne 0x10005767
and ecx, 0xfff
mov eax, ebx
shr eax, 0x10
add word [ecx + edi], ax
jmp 0x10005779
push 2
pop edx
cmp ax, dx
jne 0x1000577c
and ecx, 0xfff
add word [ecx + edi], bx
mov esi, dword [ebp - 4]
push 2
pop eax
add dword [ebp - 0xc], eax
test esi, esi
jne 0x10005724
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
dec esi
mov dword [ebp - 4], esi
sub edi, dword [ecx + 4]
add ecx, dword [ecx + 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
test edi, edi
jne 0x10005708
mov ebx, dword [ebp - 0x14]
movzx edi, word [ebx + 6]
movzx eax, word [ebx + 0x14]
test edi, edi
je 0x10005893
lea esi, [ebx + 0x3c]
push 4
add esi, eax
pop ebx
mov eax, dword [esi - 0x18]
dec edi
and dword [ebp - 0x10], 0
add eax, edx
push 0
mov dword [ebp - 4], eax
test dword [esi], 0x80000000
pop ecx
push 8
pop eax
cmovne ecx, eax
mov eax, 0x40000000
mov dword [ebp - 0x10], ecx
test dword [esi], eax
cmovne ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
test dword [esi], 0x80000000
je 0x100057ff
test dword [esi], eax
cmovne ecx, ebx
mov dword [ebp - 0x10], ecx
test dword [esi], 0x20000000
push 0x10
pop eax
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
test dword [esi], 0x20000000
je 0x1000585d
test dword [esi], 0x80000000
mov eax, 0x80
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
test dword [esi], 0x20000000
je 0x1000585d
test dword [esi], 0x40000000
push 0x20
pop eax
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
test dword [esi], 0x20000000
je 0x1000585d
test dword [esi], 0x80000000
je 0x1000585d
test dword [esi], 0x40000000
push 0x40
pop eax
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [esi - 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10005885
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push eax
call fcn.100051b5
mov edx, dword [ebp - 8]
add esp, 0x18
add esi, 0x28
test edi, edi
jne 0x100057c2
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebx + 0x28]
lea eax, [ebp - 0x68]
xor ebx, ebx
add esi, edx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.100051d4
add esp, 0x10
xor eax, eax
inc eax
push ebx
push eax
push dword [ebp - 8]
call esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret