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

Disassembly:
mov eax, 0x15c0
call fcn.12f5d840
push esi
push edi
push 0x13183740
call fcn.12ff9fb0
mov esi, eax
push 0x1318373c
mov dword [esp + 0x44], esi
call fcn.12ff9fb0
mov edi, eax
push 0x1318396c
mov dword [esp + 0x50], edi
call fcn.12ff9fb0
add esp, 0xc
mov dword [esp + 0x40], eax
test esi, esi
je 0x12ffdc5b
test edi, edi
je 0x12ffdc5b
test eax, eax
je 0x12ffdc5b
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x468]
push ebx
mov ebx, dword [esp + 0x15d0]
push ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x15d8]
mov dword [esp + 0x80], 0
mov ebp, eax
mov dword [esp + 0x470], 0x160
test eax, eax
mov dword [esp + 0x10], ebp
jne 0x12ffcb75
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x50]
mov esi, 0x10000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
push 0x1c
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jbe 0x12ffcb5a
cmp dword [esp + 0x60], 0x1000
jne 0x12ffcb31
mov eax, dword [esp + 0x64]
cmp al, 1
je 0x12ffcb31
test ah, 1
jne 0x12ffcb31
push 0x13183740
call fcn.12ff9fb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x12ffcb31
mov edx, dword [esp + 0x15d4]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0xc8]
push 0x40
push ecx
push esi
push edx
call ebx
test eax, eax
je 0x12ffcb31
cmp word [esp + 0xc4], 0x5a4d
jne 0x12ffcb31
mov edx, dword [esp + 0x15d4]
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x24c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x100]
push eax
lea eax, [esp + 0x250]
push pe_nt_image_headers32
add ecx, esi
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x12ffcb31
cmp dword [esp + 0x24c], 0x4550
jne 0x12ffcb31
mov eax, dword [esp + 0x262]
test ah, 0x20
je 0x12ffcb68
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x15d4]
lea edx, [esp + 0x50]
lea esi, [ecx + eax]
push 0x1c
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
ja 0x12ffca72
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [esp + 0x10], ebp
jmp 0x12ffcb75
mov ebx, dword [esp + 0x15d4]
mov ebp, esi
mov dword [esp + 0x10], ebp
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x84]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x88]
push 0x40
push eax
push ebp
push ebx
call dword [esp + 0x58]
test eax, eax
je 0x12ffdc49
cmp word [esp + 0x84], 0x5a4d
mov ecx, 0x10
lea esi, [esp + 0x84]
lea edi, [esp + 0x484]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x474], ebp
jne 0x12ffdc49
mov edx, dword [esp + 0xc0]
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x104]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x108]
push pe_nt_image_headers32
add edx, ebp
push ecx
push edx
push ebx
call dword [esp + 0x58]
test eax, eax
je 0x12ffdc49
mov ecx, 0x42
lea esi, [esp + 0x104]
lea edi, [esp + 0x4c4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc0]
lea eax, [esi + ebp]
mov dword [esp + 0x478], eax
mov eax, dword [esp + 0x104]
cmp eax, 0x4550
jne 0x12ffdc49
mov ebx, dword [esp + 0x194]
xor eax, eax
mov ecx, 1
cmp ebx, eax
mov dword [esp + 0x28], ecx
jne 0x12ffcc53
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp esi, 0x40
mov dword [esp + 0x7c], eax
jae 0x12ffcc64
mov dword [esp + 0x7c], 1
cmp ecx, eax
mov dword [esp + 0x14], eax
je 0x12ffceef
mov dword [esp + 0x34], 0x2000
cmp ebp, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
je 0x12ffdc49
cmp ebx, eax
je 0x12ffdc49
push 0x13183740
call fcn.12ff9fb0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x12ffdc49
mov eax, dword [esp + 0x34]
mov esi, 0x2000
cmp eax, esi
jbe 0x12ffccbe
mov esi, eax
push esi
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
je 0x12ffdc49
mov edi, dword [esp + 0x38]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x38]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
push esi
lea edi, [ebx + eax]
mov eax, dword [esp + 0x15dc]
push edx
push edi
push eax
mov dword [esp + 0x50], 0
call ebp
test eax, eax
je 0x12ffcd1a
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x12ffcd95
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x15d4]
lea ecx, [esp + 0x40]
xor ebx, ebx
push ecx
push 0x14
push edx
push edi
push eax
mov dword [esp + 0x54], ebx
call ebp
test eax, eax
je 0x12ffce77
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x12ffcd83
mov eax, esi
inc ebx
add esi, 0x14
add edi, 0x14
test eax, eax
je 0x12ffcd83
cmp dword [eax], 0
jne 0x12ffcd64
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x12ffcd83
cmp ebx, 0xc8
jae 0x12ffcd83
mov edx, dword [esp + 0x15d4]
lea ecx, [esp + 0x40]
push ecx
push 0x14
push esi
push edi
push edx
call ebp
test eax, eax
jne 0x12ffcd43
test ebx, ebx
jbe 0x12ffce77
lea ecx, [ebx + ebx*4]
shl ecx, 2
mov dword [esp + 0x3c], ecx
mov eax, 0xcccccccd
lea edi, [esp + 0x24d]
mul ecx
mov ebx, edx
mov edx, 0
mov ecx, 0x3f
mov eax, edx
mov byte [esp + 0x24c], dl
mov dword [esp + 0x78], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
shr ebx, 4
stosb byte es:[edi], al
mov dword [esp + 0x24], edx
je 0x12ffce6f
mov eax, dword [esp + 0x38]
lea esi, [eax + 0x10]
mov eax, dword [esp + 0x78]
mov ecx, dword [esi - 0x10]
inc eax
test ecx, ecx
mov dword [esp + 0x78], eax
jne 0x12ffcdee
cmp dword [esi], 0
je 0x12ffcec2
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x12ffce5b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24c]
mov dword [esp + 0x20], eax
rep stosd dword es:[edi], eax
mov eax, dword [esi - 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x250]
push 0xff
add eax, ecx
mov ecx, dword [esp + 0x15dc]
push edx
push eax
push ecx
call ebp
test eax, eax
je 0x12ffce5b
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x12ffce5b
lea edx, [esp + 0x24c]
push 0x130c55d4
push edx
call fcn.12f5ec40
add esp, 8
test eax, eax
jne 0x12ffce5b
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add esi, 0x14
inc eax
cmp eax, ebx
mov dword [esp + 0x24], eax
jb 0x12ffcdd5
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.12f5bf80
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x12ffcef9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x12ffdc49
mov eax, dword [esp + 0x34]
add eax, 0x8000
cmp eax, 0x1a000
mov dword [esp + 0x34], eax
jge 0x12ffdc49
mov ebx, dword [esp + 0x194]
mov ebp, dword [esp + 0x10]
xor eax, eax
jmp 0x12ffcc78
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax*4]
shl ecx, 2
test edx, edx
mov dword [esp + 0x18], ecx
jne 0x12ffcee5
cmp eax, 2
jb 0x12ffcee5
mov edx, dword [esp + 0x38]
mov eax, dword [ecx + edx - 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 1
jmp 0x12ffce77
mov dword [esp + 0x18], 0x14
jmp 0x12ffcf00
mov esi, dword [esp + 0xc0]
mov eax, 0xcccccccd
mul dword [esp + 0x18]
shr edx, 4
test edx, edx
mov dword [esp + 0x40], edx
je 0x12ffdc49
mov eax, dword [esp + 0x18]
lea edx, [edx + edx*4]
shl edx, 2
cmp edx, eax
jne 0x12ffdc49
mov eax, dword [esp + 0x118]
xor ecx, ecx
and eax, 0xffff
xor edx, edx
cmp word [esp + 0x10a], cx
mov dword [esp + 0x1e4], ecx
mov dword [esp + 0x1e8], ecx
mov dword [esp + 0x1c], ecx
lea eax, [eax + esi + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
jbe 0x12ffd059
mov ecx, dword [esp + 0x10]
lea ebx, [eax + ecx]
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x50]
push eax
lea edx, [esp + 0x54]
push 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x15dc]
push edx
push ebx
push eax
call dword [esp + 0x58]
test eax, eax
je 0x12ffdc49
mov esi, dword [esp + 0x60]
test esi, esi
mov ecx, esi
jne 0x12ffcfa9
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x1ec]
mov eax, dword [esp + 0x5c]
test edi, edi
jne 0x12ffcfda
mov edx, dword [esp + 0x194]
cmp edx, eax
jb 0x12ffcfda
lea ebp, [eax + ecx]
cmp edx, ebp
jae 0x12ffcfda
mov edi, eax
mov dword [esp + 0x1f0], ecx
mov dword [esp + 0x1ec], edi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x12ffcffd
test edi, edi
jne 0x12ffcffd
mov edx, dword [esp + 0x14]
cmp edx, eax
jb 0x12ffcffd
lea ebp, [eax + ecx]
cmp edx, ebp
jae 0x12ffcffd
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x64]
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jae 0x12ffd010
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10a]
inc eax
and edx, 0xffff
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x2c], eax
jb 0x12ffcf71
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x12ffd071
test edi, edi
jne 0x12ffd071
test edx, edx
jbe 0x12ffd062
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1ec], edx
mov dword [esp + 0x1f0], eax
jmp 0x12ffd071
mov edi, dword [esp + 0x1ec]
jmp 0x12ffd035
mov eax, dword [esp + 0x12c]
test eax, eax
jne 0x12ffdc49
mov edx, dword [esp + 0x10]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x15d4]
lea ecx, [esp + 0x50]
push 0x1c
push ecx
push edx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jbe 0x12ffd15c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
cmp eax, ecx
jne 0x12ffd162
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
push 0x13183740
lea ebp, [edx + edi]
call fcn.12ff9fb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x12ffd0d4
xor esi, esi
jmp 0x12ffd134
cmp edi, ebp
jae 0x12ffd134
mov ecx, dword [esp + 0x15d4]
push 0
lea eax, [esp + 0x5d4]
push 0x1000
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x12ffd134
and esi, 0xffff
lea ecx, [esp + 0x5d0]
mov eax, esi
mov edx, 0x800
xor esi, esi
mov si, word [ecx]
add ecx, 2
add eax, esi
mov esi, eax
and eax, 0xffff
shr esi, 0x10
add eax, esi
dec edx
jne 0x12ffd10a
mov esi, eax
add edi, 0x1000
shr esi, 0x10
add esi, eax
cmp edi, ebp
jb 0x12ffd0d8
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x50]
add eax, edx
mov edx, dword [esp + 0x15d4]
push 0x1c
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
ja 0x12ffd0a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x15e]
push eax
mov eax, dword [esp + 0x160]
cmp si, ax
sbb ecx, ecx
neg ecx
sub esi, ecx
sub esi, eax
push esi
call fcn.12ffdc70
mov edx, dword [esp + 0x1a0]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
add esp, 8
cmp edx, eax
mov dword [esp + 0x34], edx
jae 0x12ffd1a2
mov edx, eax
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x15e0]
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [esp + 0x24], eax
lea edx, [eax + edx + 7]
mov eax, ecx
and edx, 0xfffffff8
shl eax, 4
add eax, edx
mov dword [esp + 0x20], edx
mov ebx, eax
mov dword [esp + 0x18], eax
test ecx, ecx
mov dword [esp + 0x3c], ebx
jbe 0x12ffd1f9
mov edx, dword [esp + 0x15dc]
mov esi, ecx
mov edi, dword [edx]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
add ecx, 3
and ecx, 0xfffffffc
add ebx, ecx
dec esi
jne 0x12ffd1dc
mov dword [esp + 0x3c], ebx
push ebx
call fcn.12f5bf8b
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
je 0x12ffdc49
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov esi, dword [esp + 0x10]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x128]
mov ebp, dword [esp + 0x120]
mov edi, dword [esp + 0x130]
add eax, ecx
add eax, ebp
add eax, edi
add eax, esi
cmp esi, eax
jae 0x12ffd250
mov esi, eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x50]
push 0x13183748
rep stosd dword es:[edi], eax
call fcn.12ff9fb0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x12ffdc3c
mov ebp, dword [esp + 0x15d4]
lea edx, [esp + 0x50]
push 0x1c
push edx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jbe 0x12ffd30c
mov eax, dword [esp + 0x60]
cmp eax, 0x10000
mov eax, dword [esp + 0x50]
jne 0x12ffd2f3
mov ecx, dword [esp + 0x5c]
lea esi, [eax + 0xffff]
and esi, 0xffff0000
add ecx, eax
cmp esi, ecx
jae 0x12ffd2f3
push 4
push 0x2000
push ebx
push esi
push ebp
call dword [esp + 0x30]
test eax, eax
je 0x12ffd2df
push 4
push 0x1000
push ebx
push esi
push ebp
call dword [esp + 0x30]
mov edi, eax
test edi, edi
mov dword [esp + 0x78], edi
jne 0x12ffd317
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
add esi, 0x10000
add edx, eax
cmp esi, edx
jb 0x12ffd2b5
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x50]
add eax, ecx
push 0x1c
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
ja 0x12ffd290
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12ffdc3c
mov esi, dword [esp + 0x28]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x480], eax
je 0x12ffd35a
mov edx, dword [esp + 0x194]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
push 0x40
add edx, eax
push ecx
push edx
push ebp
call dword [esp + 0x5c]
test eax, eax
je 0x12ffdc3c
mov ebp, dword [esp + 0x15d4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x15e4]
mov dword [esp + 0x480], ecx
mov ecx, dword [esp + 0x10]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x12ffd386
mov edx, dword [esp + 0x24]
add eax, edx
test esi, esi
je 0x12ffd3a9
mov edx, dword [esp + 0x34]
push 0
push edx
push eax
mov eax, dword [esp + 0x1a0]
add eax, ecx
push eax
push ebp
call dword [esp + 0x58]
test eax, eax
je 0x12ffdc3c
mov eax, dword [esp + 0x15e0]
xor ebp, ebp
test eax, eax
jbe 0x12ffd4bb
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x15dc]
mov dword [esp + 0x1c], eax
lea edx, [ecx + eax]
mov eax, 8
sub eax, ecx
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, ebx
mov ebx, dword [esp + 0x14]
sub eax, edi
mov dword [esp + 0x24], 0
lea edi, [edi + ebx]
je 0x12ffd426
mov bl, byte [ecx]
test bl, bl
je 0x12ffd40b
mov byte [edi], bl
inc edi
inc ecx
dec eax
jne 0x12ffd3f6
dec edi
mov eax, 0x57
jmp 0x12ffd41b
test eax, eax
jne 0x12ffd417
dec edi
mov eax, 0x57
jmp 0x12ffd41b
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [edi], 0
jl 0x12ffdc3c
mov ecx, dword [esp + 0x40]
lea eax, [ecx + ebp - 1]
mov ecx, dword [esp + 0x15e4]
test ecx, ecx
jne 0x12ffd43b
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea edi, [edx + 8]
add ebx, 0x10
add esi, 4
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], ebx
mov dword [eax], edx
mov dword [ecx + ebx - 0xc], 0
mov dword [eax + 0x10], edi
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
add edx, 0x10
lea edi, [ecx + edi + 4]
xor ecx, ecx
mov dword [edi + edx - 0x10], ecx
mov edi, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
add edi, ecx
or ecx, 0xffffffff
mov dword [eax + 0xc], edi
mov edi, dword [esi - 4]
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x15e0]
not ecx
add ecx, 3
and ecx, 0xfffffffc
add edi, ecx
inc ebp
cmp ebp, eax
mov dword [esp + 0x18], edi
jb 0x12ffd3db
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x15e4]
test eax, eax
je 0x12ffd4f2
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x15e0]
mov esi, dword [esp + 0x14]
xor edx, edx
add eax, ecx
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4 - 0x14]
mov dword [esi + eax*4 - 0x14], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
jmp 0x12ffd4f6
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x15e0]
add edx, eax
xor ecx, ecx
test edx, edx
jbe 0x12ffd51f
mov eax, esi
cmp dword [eax], 0
jne 0x12ffd517
mov ebp, dword [eax + 0x10]
test ebp, ebp
je 0x12ffd51f
inc ecx
add eax, 0x14
cmp ecx, edx
jb 0x12ffd50b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x15d4]
push 0
push ecx
push esi
push edi
push edx
call dword [esp + 0x60]
test eax, eax
je 0x12ffdc3c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x198], ebx
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x1fc]
test eax, eax
je 0x12ffd609
mov ecx, dword [esp + 0x200]
test ecx, ecx
je 0x12ffd609
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x54]
push 0x14
lea esi, [eax + ecx]
mov eax, dword [esp + 0x15dc]
push edx
push esi
push eax
call dword [esp + 0x58]
test eax, eax
je 0x12ffdc3c
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x30]
mov dword [esp + 0x5cc], eax
and al, 0xfe
push edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x15d8]
push 4
push 0x14
lea ecx, [esi + 0x10]
push esi
push eax
mov dword [esp + 0x490], ecx
call dword [esp + 0x5c]
test eax, eax
je 0x12ffdc3c
mov edx, dword [esp + 0x15d4]
push 0
lea ecx, [esp + 0x54]
push 0x14
push ecx
push esi
push edx
call dword [esp + 0x60]
test eax, eax
je 0x12ffdc3c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x15d4]
lea eax, [esp + 0x30]
push eax
push ecx
push 0x14
push esi
push edx
call dword [esp + 0x5c]
test eax, eax
je 0x12ffdc3c
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x15d8]
push 0x40
push ecx
push edx
push eax
call dword [esp + 0x5c]
test eax, eax
je 0x12ffdc3c
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x12ffd643
mov word [esp + 0xa0], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x15d4]
push 0
lea ecx, [esp + 0x88]
push 0x40
push ecx
push edx
push eax
call dword [esp + 0x60]
test eax, eax
je 0x12ffdc3c
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x108]
push pe_nt_image_headers32
push ecx
mov ecx, dword [esp + 0x15e0]
add edx, eax
push edx
push ecx
call dword [esp + 0x60]
test eax, eax
je 0x12ffdc3c
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x12ffd7e5
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x15d4]
push 0x1c
push edx
push eax
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jbe 0x12ffd790
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
cmp eax, edx
jne 0x12ffd796
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
push 0x13183740
lea ebp, [eax + edi]
call fcn.12ff9fb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x12ffd708
xor esi, esi
jmp 0x12ffd768
cmp edi, ebp
jae 0x12ffd768
mov edx, dword [esp + 0x15d4]
push 0
lea ecx, [esp + 0x5d4]
push 0x1000
push ecx
push edi
push edx
call ebx
test eax, eax
je 0x12ffd768
and esi, 0xffff
lea ecx, [esp + 0x5d0]
mov eax, esi
mov edx, 0x800
xor esi, esi
mov si, word [ecx]
add ecx, 2
add eax, esi
mov esi, eax
and eax, 0xffff
shr esi, 0x10
add eax, esi
dec edx
jne 0x12ffd73e
mov esi, eax
add edi, 0x1000
shr esi, 0x10
add esi, eax
cmp edi, ebp
jb 0x12ffd70c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x50]
add eax, ecx
push 0x1c
push edx
push eax
mov eax, dword [esp + 0x15e0]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
ja 0x12ffd6d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x15c]
cmp si, ax
sbb ecx, ecx
neg ecx
sub esi, ecx
sub esi, eax
mov eax, dword [esp + 0x15e]
cmp si, ax
sbb edx, edx
neg edx
sub esi, edx
sub esi, eax
mov eax, dword [esp + 0x2c]
cmp si, ax
sbb ecx, ecx
neg ecx
add ecx, eax
mov ax, word [esp + 0xa0]
sub esi, ecx
cmp ax, si
sbb edx, edx
neg edx
add edx, esi
sub ax, dx
mov word [esp + 0xa0], ax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x15d4]
push 0
lea eax, [esp + 0x88]
push 0x40
push eax
push ecx
push edx
call dword [esp + 0x60]
test eax, eax
je 0x12ffdc3c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x15dc]
push edx
push eax
push ecx
call dword [esp + 0x5c]
test eax, eax
je 0x12ffdc3c
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x12ffd961
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x15d4]
push 0x1c
push edx
push eax
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jbe 0x12ffd92c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
cmp eax, edx
jne 0x12ffd932
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
push 0x13183740
lea ebp, [eax + edi]
call fcn.12ff9fb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x12ffd8a4
xor esi, esi
jmp 0x12ffd904
cmp edi, ebp
jae 0x12ffd904
mov edx, dword [esp + 0x15d4]
push 0
lea ecx, [esp + 0x5d4]
push 0x1000
push ecx
push edi
push edx
call ebx
test eax, eax
je 0x12ffd904
and esi, 0xffff
lea ecx, [esp + 0x5d0]
mov eax, esi
mov edx, 0x800
xor esi, esi
mov si, word [ecx]
add ecx, 2
add eax, esi
mov esi, eax
and eax, 0xffff
shr esi, 0x10
add eax, esi
dec edx
jne 0x12ffd8da
mov esi, eax
add edi, 0x1000
shr esi, 0x10
add esi, eax
cmp edi, ebp
jb 0x12ffd8a8
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x50]
add eax, ecx
push 0x1c
push edx
push eax
mov eax, dword [esp + 0x15e0]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
ja 0x12ffd872
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x15c]
cmp si, ax
sbb ecx, ecx
neg ecx
sub esi, ecx
sub esi, eax
mov eax, dword [esp + 0x15e]
cmp si, ax
sbb edx, edx
neg edx
sub esi, edx
sub esi, eax
cmp word [esp + 0x2c], si
jne 0x12ffdc3c
mov eax, dword [esp + 0x15e8]
test eax, eax
je 0x12ffdc31
push 0x13183748
call fcn.12ff9fb0
push 0x1318373c
mov esi, eax
call fcn.12ff9fb0
add esp, 8
mov ebx, eax
test esi, esi
je 0x12ffdc3c
test ebx, ebx
je 0x12ffdc3c
mov eax, dword [esp + 0x15d4]
push 4
push 0x1000
push 0x42c
push 0
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x12ffdc3c
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20c]
lea edx, [esp + 0x20c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x15d4]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push edx
push ebp
push eax
mov dword [esp + 0x24], 0
mov word [esp + 0x220], 0x5a4d
mov dword [esp + 0x25c], 0x40
call ebx
test eax, eax
je 0x12ffdc3c
cmp dword [esp + 0x10], 0x40
jne 0x12ffdc3c
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x24c]
lea edx, [esp + 0x24c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x15d4]
lea ecx, [esp + 0x10]
push ecx
lea esi, [ebp + 0x40]
push pe_nt_image_headers32
push edx
push esi
push eax
mov dword [esp + 0x260], 0x4550
mov word [esp + 0x274], 0xf0
mov word [esp + 0x276], 0x2000
mov word [esp + 0x266], 1
call ebx
test eax, eax
je 0x12ffdc3c
cmp dword [esp + 0x10], 0x108
jne 0x12ffdc3c
mov edx, dword [0x131839fc]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x50]
add esi, 0x108
rep stosd dword es:[edi], eax
mov ecx, dword [0x131839f8]
mov eax, esi
mov dword [esp + 0x50], ecx
sub eax, ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], edx
add eax, 0x28
push ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x15d8]
push 0x28
push edx
mov ebp, 0x2bc
push esi
push eax
mov dword [esp + 0x74], ebp
call ebx
test eax, eax
je 0x12ffdc3c
cmp dword [esp + 0x10], 0x28
jne 0x12ffdc3c
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc4]
lea edx, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov eax, 0x40
push ecx
add esi, 0x28
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd0], eax
push eax
mov eax, dword [esp + 0x15dc]
push edx
push esi
push eax
mov dword [esp + 0xdc], 0x727444
mov dword [esp + 0xe4], ebp
call ebx
test eax, eax
je 0x12ffdc3c
cmp dword [esp + 0x10], 0x40
jne 0x12ffdc3c
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 0x354]
mov edx, dword [0x1307f4ec]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1307f4e8]
mov dword [esp + 0x358], eax
mov eax, dword [0x1307f4f0]
mov dword [esp + 0x35c], ecx
mov ecx, dword [0x1307f4f4]
mov dword [esp + 0x364], eax
mov eax, dword [esp + 0x15dc]
add esi, 0x40
test eax, eax
mov dword [esp + 0x354], 0x27c
mov dword [esp + 0x360], edx
mov dword [esp + 0x368], ecx
je 0x12ffdbd5
mov ecx, dword [esp + 0x15e0]
test ecx, ecx
jbe 0x12ffdbd5
mov edx, dword [eax]
push 0x103
lea eax, [esp + 0x370]
push edx
push eax
call fcn.12f5c900
add esp, 0xc
mov eax, dword [esp + 0x15d4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x358]
push 0x11c
push edx
push esi
push eax
call ebx
test eax, eax
je 0x12ffdc3c
cmp dword [esp + 0x10], 0x11c
jne 0x12ffdc3c
mov eax, dword [esp + 0x15d4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x474]
push 0x160
add esi, 0x11c
push edx
push esi
push eax
call ebx
test eax, eax
je 0x12ffdc3c
cmp dword [esp + 0x10], 0x160
jne 0x12ffdc3c
mov dword [esp + 0x80], 1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x80]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x15c0
ret
pop edi
xor eax, eax
pop esi
add esp, 0x15c0
ret