Function at 0x10038550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1007d9b8
push 0x100486a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10082594]
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 ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0x3c]
add eax, ebx
jne 0x100385cb
test dword [0x10087444], 0x400
je 0x100385b0
push 0x17
push str.IATPatch:_ERROR_no_PNTH_at__d_n
call fcn.10025250
add esp, 8
mov dword [ebp - 4], 0xfffffffe
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 [eax + 0x80]
cmp eax, ecx
jne 0x100385ea
test dword [0x10087444], 0x400
je 0x100385b0
push 0x1c
push str.IATPatch:_ERROR_no_RVA_at__d_n
jmp 0x100385a8
lea edi, [eax + ebx]
mov dword [ebp - 0x20], edi
cmp dword [edi + 0x10], 0
je 0x10038775
mov eax, dword [edi + 0xc]
add eax, ebx
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003876d
mov esi, dword [edi + 0x10]
add esi, ebx
mov dword [ebp - 0x24], esi
mov eax, dword [edi]
test eax, eax
je 0x10038625
lea edi, [eax + ebx]
jmp 0x10038627
xor edi, edi
mov dword [ebp - 0x28], edi
lea ebx, [ebx]
cmp dword [esi], 0
je 0x1003876a
test edi, edi
je 0x10038656
mov eax, dword [edi]
test eax, eax
js 0x10038656
lea ecx, [eax + ebx + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10038670
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10038661
cmp dword [esi], eax
je 0x10038670
add esi, 4
mov dword [ebp - 0x24], esi
test edi, edi
je 0x10038630
add edi, 4
jmp 0x10038627
cmp dword [esi], 0
je 0x1003876a
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x18]
cmp eax, edi
je 0x100385b0
lea eax, [ebp + 8]
push eax
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
jne 0x100386c9
test dword [0x10087444], 0x1000
je 0x100385b0
push 0x3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IATPatch:_VirtualProtect_error__d_at__d_n
call fcn.10025250
add esp, 0xc
jmp 0x100385b0
mov dword [esi], edi
lea ecx, [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
push 4
push esi
call ebx
test eax, eax
jne 0x10038707
test dword [0x10087444], 0x1000
je 0x100385b0
push 0x43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IATPatch:_VirtualProtect_error__d_at__d_n
call fcn.10025250
add esp, 0xc
jmp 0x100385b0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10038746
test dword [0x10087444], 0x1000
je 0x100385b0
push 0x47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IATPatch:_FlushInstructionCache_error__d_at__d_n
call fcn.10025250
add esp, 0xc
jmp 0x100385b0
test dword [0x10087444], 0x400
je 0x100387c9
push edi
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str.IATPatch_hook_s_address_x___x_n
call fcn.10025250
add esp, 0x10
jmp 0x100387c9
mov edi, dword [ebp - 0x20]
add edi, 0x14
jmp 0x100385ed
test dword [0x10087444], 0x400
je 0x100385b0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.IATPatch:_PE_unreferenced_function__s:_s_n
call fcn.10025250
add esp, 0xc
jmp 0x100385b0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret