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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30217d18
push 0x30160f00
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x3021be88]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, edx
mov dword [ebp - 0x20], eax
mov edi, ecx
xor ebx, ebx
test edi, edi
je 0x300027a7
test eax, eax
je 0x300027a7
push 0x1c
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x300027a7
mov eax, dword [ebp - 0x34]
test al, 0xee
je 0x300027a7
test eax, 0x101
jne 0x300027a7
test eax, eax
je 0x300027a7
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x300027a7
mov esi, dword [edi + 0x3c]
add esi, edi
mov ecx, esi
call fcn.300027c0
test eax, eax
je 0x300027a7
cmp dword [esi], 0x4550
jne 0x300027a7
mov eax, dword [esi + 0x78]
test eax, eax
je 0x300027a7
lea edx, [eax + edi]
mov dword [ebp - 0x1c], edx
mov eax, dword [edx + 0x20]
test eax, eax
je 0x300027a7
cmp eax, dword [esi + 0x50]
ja 0x300027a7
add eax, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
xor esi, esi
mov dword [ebp - 0x28], esi
cmp esi, dword [edx + 0x18]
jae 0x300025fa
mov eax, dword [eax + esi*4]
test eax, eax
je 0x300025f4
mov ecx, dword [ebp - 0x20]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x300025d0
test dl, dl
je 0x300025cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x300025d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x300025b0
xor eax, eax
jmp 0x300025d5
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x1c]
test eax, eax
jne 0x300025f4
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ebx, dword [eax + edi]
add ebx, edi
mov dword [ebp - 0x2c], ebx
inc esi
mov eax, dword [ebp - 0x24]
jmp 0x3000259c
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test ebx, ebx
jne 0x30002773
push 0x301e5604
call esi
cmp edi, eax
jne 0x30002729
test edi, edi
je 0x300027a7
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x300027a7
push 0x1c
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x300027a7
mov eax, dword [ebp - 0x34]
test al, 0xee
je 0x300027a7
test eax, 0x101
jne 0x300027a7
test eax, eax
je 0x300027a7
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x300027a7
mov esi, dword [edi + 0x3c]
add esi, edi
mov ecx, esi
call fcn.300027c0
test eax, eax
je 0x300027a7
cmp dword [esi], 0x4550
jne 0x300027a7
movzx ecx, word [esi + 0x14]
add ecx, edi
mov eax, dword [edi + 0x3c]
mov esi, dword [ecx + eax + 0x24]
add esi, edi
mov edi, dword [ecx + eax + 0x20]
add edi, esi
cmp esi, edi
jae 0x300027a7
nop
mov eax, dword [esi]
cmp eax, 0xffff0000
je 0x300026c0
cmp eax, 0xffff0008
jne 0x300026f9
mov eax, dword [esi + 8]
test eax, eax
je 0x300026f9
mov ecx, ebx
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x300026f0
test dl, dl
je 0x300026ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x300026f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x300026d0
xor eax, eax
jmp 0x300026f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x30002714
add esi, 4
cmp esi, edi
jb 0x300026b0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x30002773
push 0x301e5608
call esi
cmp edi, eax
jne 0x30002773
mov edx, str.getJit
mov ecx, edi
call fcn.300024c0
test eax, eax
jne 0x30002769
push str.GetExportAddress:_failed_to_resolve_getJit_n
call fcn.30009b40
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call eax
test eax, eax
je 0x30002773
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret