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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ae81d
push eax
mov dword fs:[0], esp
sub esp, 0x90
cmp dword [ebp + 0x10], 1
push ebx
push esi
push edi
mov esi, ecx
jne 0x418917
cmp dword [ebp + 0x18], 4
jne 0x418917
mov ebx, dword [ebp + 8]
mov edi, ebx
call fcn.00418122
test al, al
jne 0x418244
mov eax, 0x8007000e
jmp 0x41891c
and dword [esp + 0x50], 0
and dword [esp + 0x54], 0
test esi, esi
mov byte [esp + 0xf], 0
je 0x41827d
mov eax, dword [esi]
test eax, eax
je 0x41827d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
ja 0x41827d
jb 0x418278
cmp ecx, 0x1000000
ja 0x41827d
mov byte [esp + 0xf], 1
mov dword [esp + 0x94], ebx
and dword [esp + 0xa4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
lea esi, [ebx + 0x24]
mov dword [esp + 0x28], esi
call fcn.0040cec6
lea eax, [ebx + 0x10]
mov dword [esp + 0x58], eax
call fcn.0040e4fa
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 4]
lea esi, [ebx + 0x4c]
mov dword [esp + 0x44], esi
call fcn.0040cec6
lea eax, [ebx + 0x38]
mov dword [esp + 0x80], eax
call fcn.0040e4fa
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 8]
lea esi, [ebx + 0x74]
mov dword [esp + 0x3c], esi
call fcn.0040cec6
lea eax, [ebx + 0x60]
mov dword [esp + 0x7c], eax
call fcn.0040e4fa
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0xc]
lea esi, [ebx + 0xb4]
mov dword [esp + 0x40], esi
call fcn.0040cec6
lea esi, [ebx + 0x88]
lea eax, [esi + 0x18]
call fcn.0040e4fa
or dword [esi + 0x10], 0xffffffff
xor edx, edx
lea edi, [ebx + 0xc8]
mov ecx, 0x102
mov eax, 0x400
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi], 1
mov byte [esi + 4], dl
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
push 0x4bdf80
mov byte [esp + 0xac], 1
mov ecx, dword [eax]
push eax
call dword [ecx]
xor edi, edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov byte [esp + 0xc], 0
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
and dword [esp + 0x10], 0
mov eax, 0x20000
jmp 0x4183d5
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx]
lea edx, [esp + 0x84]
push edx
push eax
mov eax, dword [ebx + 8]
add eax, dword [esp + 0x18]
add eax, edi
push eax
push dword [esp + 0x68]
call dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x4186b5
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4183d9
add dword [esp + 0x10], eax
mov eax, 0x20000
sub eax, dword [esp + 0x10]
sub eax, edi
jne 0x418391
mov eax, dword [esp + 0x10]
add eax, edi
cmp eax, 5
mov dword [esp + 0x2c], eax
jb 0x418726
and dword [esp + 0x10], 0
jmp 0x4183f6
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edi, dword [esp + 0x10]
mov bl, byte [edi + eax]
mov eax, dword [esp + 0x58]
mov byte [esp + 0xd], bl
call fcn.00417ed0
mov al, bl
and al, 0xfe
cmp al, 0xe8
je 0x41842e
cmp byte [esp + 0xc], 0xf
jne 0x418424
mov al, bl
and al, 0xf0
cmp al, 0x80
je 0x41842e
inc edi
mov dword [esp + 0x10], edi
jmp 0x41864a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, edi
movzx edx, byte [eax + 3]
mov cl, byte [eax + 4]
movzx ebx, byte [eax + 2]
movzx eax, byte [eax + 1]
mov dh, cl
mov byte [esp + 0xe], cl
shl edx, 8
or edx, ebx
shl edx, 8
or eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
add eax, edi
lea edx, [eax + edx + 5]
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0x78], edx
je 0x4185ad
xor ebx, ebx
add edi, dword [esp + 0x48]
adc ebx, dword [esp + 0x4c]
cmp dword [esp + 0x1c], ebx
ja 0x418533
jae 0x418529
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x88]
push edx
push dword [esp + 0x78]
push dword [esp + 0x78]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x60], eax
jne 0x4184e1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x88]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
adc dword [esp + 0x1c], eax
add dword [esp + 0x70], 1
adc dword [esp + 0x74], 0
jmp 0x41851d
cmp dword [esp + 0x60], 1
je 0x4184f6
cmp dword [esp + 0x60], 0x80004001
jne 0x418839
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418509
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x14], 0
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
or dword [esp + 0x18], 0xffffffff
or dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x1c], ebx
jb 0x41848d
ja 0x418533
cmp dword [esp + 0x18], edi
jb 0x41848d
xor eax, eax
cmp dword [esp + 0x14], eax
jne 0x418565
cmp byte [esp + 0xf], al
je 0x418557
cmp eax, dword [esp + 0x54]
ja 0x4185db
jb 0x4185c2
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x50]
jmp 0x4185c0
cmp byte [esp + 0xe], 0
je 0x4185c2
cmp byte [esp + 0xe], 0xff
jmp 0x4185d9
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
jne 0x418557
cmp eax, 0x1000000
ja 0x418557
mov eax, dword [esp + 0x24]
cdq
add eax, edi
adc edx, ebx
add eax, 5
adc edx, 0
cmp edx, dword [esp + 0x34]
jb 0x4185db
ja 0x41859f
cmp eax, dword [esp + 0x30]
jb 0x4185db
cmp edx, dword [esp + 0x1c]
ja 0x4185db
jb 0x4185c2
cmp eax, dword [esp + 0x18]
jmp 0x4185c0
cmp byte [esp + 0xf], 0
je 0x4185d2
cmp eax, dword [esp + 0x54]
ja 0x4185db
jb 0x4185c2
cmp edx, dword [esp + 0x50]
jae 0x4185db
mov cl, 1
cmp byte [esp + 0xd], 0xe8
jne 0x4185df
movzx eax, byte [esp + 0xc]
jmp 0x4185ee
test cl, cl
je 0x4185c2
cmp cl, 0xff
je 0x4185c2
xor cl, cl
jmp 0x4185c4
xor eax, eax
cmp byte [esp + 0xd], 0xe9
setne al
add eax, 0x100
test cl, cl
mov ecx, dword [ebp + 8]
lea ecx, [ecx + eax*4 + 0xc8]
mov eax, esi
je 0x41863f
push 1
call fcn.00418e9d
add dword [esp + 0x10], 5
cmp byte [esp + 0xd], 0xe8
mov eax, dword [esp + 0x80]
je 0x41861c
mov eax, dword [esp + 0x7c]
push 0x18
mov dword [esp + 0x64], eax
pop edi
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
mov ecx, edi
shr ebx, cl
call fcn.00417ed0
sub edi, 8
jns 0x418623
mov al, byte [esp + 0xe]
jmp 0x41864e
push 0
call fcn.00418e9d
inc dword [esp + 0x10]
mov al, byte [esp + 0xd]
mov edi, dword [esp + 0x10]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffffb
cmp edi, eax
jbe 0x4183f3
add dword [esp + 0x6c], edi
add dword [esp + 0x48], edi
mov eax, dword [ebp + 0x1c]
push 0
pop ebx
adc dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x418693
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x4188a9
xor ecx, ecx
jmp 0x4186a5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dl, byte [eax + edi]
mov byte [eax + ecx], dl
inc ecx
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x418697
mov ebx, dword [ebp + 8]
mov edi, ecx
jmp 0x418385
mov byte [esp + 0xa4], 0
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
je 0x4186cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0xa4], 0xffffffff
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
cmp eax, edi
je 0x4186e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
cmp eax, edi
je 0x4186f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
cmp eax, edi
je 0x41870b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
cmp eax, edi
je 0x41871d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [esp + 0x24]
jmp 0x41891c
xor edi, edi
test eax, eax
jbe 0x418788
mov eax, dword [ebx + 8]
mov bl, byte [edi + eax]
mov eax, dword [esp + 0x58]
call fcn.00417ed0
cmp bl, 0xe8
jne 0x418747
movzx eax, byte [esp + 0xc]
jmp 0x418767
cmp bl, 0xe9
jne 0x418753
mov eax, pe_nt_image_headers32
jmp 0x418767
cmp byte [esp + 0xc], 0xf
jne 0x41877a
mov al, bl
and al, 0xf0
cmp al, 0x80
jne 0x41877a
mov eax, 0x101
mov ecx, dword [ebp + 8]
lea ecx, [ecx + eax*4 + 0xc8]
push 0
mov eax, esi
call fcn.00418e9d
inc edi
cmp edi, dword [esp + 0x2c]
mov byte [esp + 0xc], bl
mov ebx, dword [ebp + 8]
jb 0x41872c
mov eax, dword [esp + 0x58]
call fcn.0040e5c6
test eax, eax
jne 0x4187c8
mov eax, dword [esp + 0x80]
call fcn.0040e5c6
test eax, eax
jne 0x4187c8
mov eax, dword [esp + 0x7c]
call fcn.0040e5c6
test eax, eax
jne 0x4187c8
push 5
pop edi
call fcn.00417f03
dec edi
jne 0x4187b5
lea eax, [ebx + 0xa0]
call fcn.0040e5c6
mov esi, eax
mov byte [esp + 0xa4], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4187e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0xa4], 0xffffffff
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x4187fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov edi, dword [esp + 0x44]
mov eax, dword [edi]
cmp eax, ebx
je 0x41880e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
cmp eax, ebx
je 0x418820
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
cmp eax, ebx
je 0x418832
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov eax, esi
jmp 0x41891c
mov byte [esp + 0xa4], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41884f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0xa4], 0xffffffff
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
test eax, eax
je 0x41886a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
test eax, eax
je 0x41887d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
test eax, eax
je 0x418890
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
test eax, eax
je 0x4188a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov eax, dword [esp + 0x60]
jmp 0x41891c
mov byte [esp + 0xa4], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4188be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0xa4], 0xffffffff
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
cmp eax, ebx
je 0x4188d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
cmp eax, ebx
je 0x4188ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
cmp eax, ebx
je 0x4188fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
cmp eax, ebx
je 0x41871d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
jmp 0x41871d
mov eax, 0x80070057
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18