Function at 0x501dd0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5160c0
push 0x508364
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x501e1b
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x3c], edi
cmp word [edi], 0x5a4d
je 0x501e4c
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x44], eax
cmp dword [eax], 0x4550
je 0x501e78
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x30], edx
cmp word [eax + 0x18], 0x20b
jne 0x501e8e
mov dword [ebp - 0x50], eax
mov eax, dword [eax + 0x88]
jmp 0x501e91
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x30], eax
cmp eax, edx
jne 0x501eb4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
cmp byte [ecx], 0
je 0x501eee
inc ecx
mov dword [ebp - 0x28], ecx
inc edx
mov dword [ebp - 0x38], edx
cmp edx, 0x100
jb 0x501ebd
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [eax + edi]
mov dword [ebp - 0x4c], esi
mov ebx, dword [esi + 0x20]
add ebx, edi
mov dword [ebp - 0x34], ebx
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x501f25
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [esi + 0x18]
jae 0x501fc1
mov esi, dword [ebx]
add esi, edi
mov dword [ebp - 0x5c], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x501f72
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [ebp - 0x58], 1
xor eax, eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x38]
jae 0x501f8f
xor ecx, ecx
mov cl, byte [esi]
movsx edx, byte [edi]
sub ecx, edx
je 0x501fa2
mov byte [ebp - 0x58], 0
mov al, byte [ebp - 0x58]
test al, al
je 0x501fad
mov byte [ebp - 0x48], 1
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x4c]
jmp 0x501fc1
inc esi
mov dword [ebp - 0x5c], esi
inc edi
mov dword [ebp - 0x28], edi
inc eax
jmp 0x501f78
add ebx, 4
mov dword [ebp - 0x34], ebx
inc dword [ebp - 0x40]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x4c]
jmp 0x501f30
mov al, byte [ebp - 0x48]
test al, al
jne 0x501fe4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x24]
add eax, edi
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x40]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0x1c]
add eax, edi
mov dword [ebp - 0x24], eax
xor edx, edx
mov dx, word [ecx]
lea eax, [eax + edx*4]
mov dword [ebp - 0x24], eax
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8