Function at 0x1001c6e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100ad00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
add ecx, 4
push esi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x18]
adc eax, 0
mov esi, dword [edi + 4]
push eax
push ecx
push 0x14
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
push edi
call dword [section..rdata]
call esi
add esp, 0x14
test eax, eax
js 0x1001cd15
mov esi, dword [edi + 0x18]
mov ecx, esi
push edi
call dword [section..rdata]
call esi
movzx ecx, word [ebp - 0x108]
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], edx
cmp ecx, 0x14c
je 0x1001c7a0
cmp ecx, 0x8664
je 0x1001c794
push ecx
xor esi, esi
push str.Unsupported_Machine_x
push 0
push 0xa
push 0xfffffda0
push ebx
call fcn.100382c0
add esp, 0x18
jmp 0x1001c82c
mov eax, pe_nt_image_headers32
mov esi, 5
jmp 0x1001c7aa
mov eax, 0xe0
mov esi, 4
movzx ecx, word [ebp - 0xf8]
cmp ecx, eax
je 0x1001c7d0
push eax
push ecx
push str.SizeOfOptionalHeader_x_expected__x
push 0
push 0xa
push 0xfffffda0
push ebx
call fcn.100382c0
add esp, 0x1c
jmp 0x1001c82c
test byte [ebp - 0xf6], 1
je 0x1001c7f4
test dl, 3
jne 0x1001c7f4
push str.IMAGE_FILE_RELOCS_STRIPPED
push 0
push 0xa
push 0xfffffda0
push ebx
call fcn.100382c0
jmp 0x1001c829
mov ax, word [ebp - 0x106]
cmp ax, 0x2a
jbe 0x1001c80f
movzx eax, ax
push eax
push str.NumberOfSections_d__implementation_max_is_42
jmp 0x1001c77d
cmp ax, 1
jae 0x1001c83a
push str.Image_has_no_sections
push 0
push 0xa
push 0xfffffda0
push ebx
call fcn.10038210
add esp, 0x14
test eax, eax
js 0x1001cd15
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
mov byte [ebp - 0x118], 0
cmp eax, esi
je 0x1001c89e
cmp eax, 1
je 0x1001c89e
test dl, 4
jne 0x1001c89e
test dl, 8
jne 0x1001c897
push eax
call fcn.10009730
push dword [ebp - 0x108]
mov ecx, eax
call fcn.10019160
push ecx
push eax
push str.Image_is_for__s__only_accepting_images_for__s.
push 0
push 0xa
push 0xfffffd99
push ebx
call fcn.100382c0
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001210
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x118], 1
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
add ecx, 0x18
mov esi, dword [edi + 4]
adc eax, 0
push eax
movzx eax, word [ebp - 0xf8]
push ecx
push eax
lea eax, [ebp - 0xf4]
mov ecx, esi
push eax
push edi
call dword [section..rdata]
call esi
add esp, 0x14
test eax, eax
js 0x1001cd15
mov eax, pe_nt_image_headers32
cmp word [ebp - 0xf8], ax
je 0x1001c973
lea edx, [ebp - 8]
lea ecx, [ebp - 0x18]
lea esp, [esp]
mov eax, dword [ecx]
lea edx, [edx - 4]
mov dword [edx + 4], eax
sub ecx, 4
lea eax, [ebp - 0x9c]
cmp ecx, eax
jae 0x1001c8f0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 0
mov esi, dword [edi + 0xc]
mov ecx, esi
push ebx
push dword [ebp - 0x110]
push edi
call dword [section..rdata]
call esi
add esp, 4
push edx
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0xf4]
push dword [ebp + 0x14]
push dword [ebp - 0x11c]
push eax
call fcn.1001a700
add esp, 0x24
test eax, eax
js 0x1001cd15
cmp byte [ebp - 0x118], 0
je 0x1001ca12
cmp dword [ebp - 0xf0], 0
je 0x1001ca12
mov eax, dword [ebp - 0x10c]
push eax
call fcn.10009730
push dword [ebp - 0x108]
mov ecx, eax
call fcn.10019160
push ecx
push dword [ebp - 0xf0]
push eax
push str.Image_is_for__s_and_contains_code___x___only_accepting_images_for__s_with_code.
push 0
push 0xa
push 0xfffffd99
push ebx
call fcn.100382c0
add esp, 0x28
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001210
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp - 0x106]
push 0x10079cc7
lea eax, [eax + eax*4]
shl eax, 3
push eax
mov dword [ebp - 0x114], eax
call fcn.10003840
mov ecx, eax
add esp, 8
mov dword [ebp - 0x10c], ecx
test ecx, ecx
jne 0x1001ca53
pop edi
pop esi
lea eax, [ecx - 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001210
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp - 0xf8]
mov esi, dword [edi + 4]
cdq
add eax, dword [ebp + 0x14]
adc edx, dword [ebp + 0x18]
add eax, 0x18
adc edx, 0
push edx
push eax
push dword [ebp - 0x114]
push ecx
push edi
mov ecx, esi
call dword [section..rdata]
call esi
mov esi, eax
add esp, 0x14
test esi, esi
js 0x1001cd05
push dword [ebp - 0x118]
mov esi, dword [edi + 0xc]
mov ecx, esi
push dword [ebp - 0x110]
push edi
call dword [section..rdata]
call esi
add esp, 4
push edx
push eax
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0x11c]
movzx eax, word [ebp - 0x106]
push eax
push dword [ebp - 0x10c]
call fcn.10019df0
mov esi, eax
add esp, 0x20
test esi, esi
js 0x1001cd05
push 0x10079cc7
push 0xb0
call fcn.10003860
mov esi, eax
add esp, 8
test esi, esi
je 0x1001cd00
mov eax, pe_nt_image_headers32
mov dword [esi], 0x19531118
mov dword [esi + 4], 1
cmp word [ebp - 0xf8], ax
mov eax, 0x1007f918
je 0x1001cb18
mov eax, 0x1007f8b0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 6
mov ax, word [ebp - 0xf6]
bt ax, 0xd
jae 0x1001cb40
movzx eax, ax
not eax
and eax, 1
or eax, 2
jmp 0x1001cb49
not ax
and eax, 1
add eax, 5
mov dword [esi + 0x14], eax
mov eax, 0x14c
mov dword [esi + 0x18], 1
mov ecx, dword [ebp - 0x108]
cmp cx, ax
jne 0x1001cb6a
mov eax, 4
jmp 0x1001cb7e
xor eax, eax
mov edx, 0x8664
cmp cx, dx
sete al
lea eax, [eax*4 + 1]
mov dword [esi + 0x1c], eax
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
mov edi, dword [ebp - 0x114]
mov dword [esi + 0x20], 0
movzx eax, word [ebp - 0xf8]
cdq
add edi, eax
push ebx
adc ecx, edx
add edi, dword [ebp + 0x14]
push dword [ebp - 0x110]
adc ecx, dword [ebp + 0x18]
add edi, 0x18
mov dword [esi + 0x30], edi
adc ecx, 0
mov dword [esi + 0x34], ecx
movzx eax, word [ebp - 0x108]
mov word [esi + 0x38], ax
movzx eax, word [ebp - 0xf6]
mov word [esi + 0x3a], ax
movzx eax, word [ebp - 0x106]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x10c]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0xe4]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xd8]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0xd4]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x104]
mov dword [esi + 0x64], eax
mov eax, pe_nt_image_headers32
mov dword [esi + 0x68], 0xffffffff
cmp word [ebp - 0xf8], ax
sete al
mov byte [esi + 0x6c], al
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ecx
movzx eax, word [ebp - 0xae]
mov word [esi + 0xa8], ax
lea eax, [ebp - 0xf4]
push eax
push esi
call fcn.10019f90
add esp, 0x10
mov dword [ebp - 0x114], eax
test eax, eax
js 0x1001ccef
mov eax, dword [ebp - 0x120]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001210
mov esp, ebp
pop ebp
ret
push esi
call fcn.10003880
mov esi, dword [ebp - 0x114]
add esp, 4
jmp 0x1001cd05
mov esi, 0xfffffff8
push dword [ebp - 0x10c]
call fcn.10003880
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001210
mov esp, ebp
pop ebp
ret