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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff48
mov esi, ecx
mov byte [esp], dl
mov ebp, eax
mov byte [esp + 1], 0
mov eax, dword [esi]
test eax, eax
jne 0x4ae4a6
mov edx, 0x454c4946
mov eax, ebp
call fcn.004abc48
test eax, eax
je 0x4aec5b
mov dword [esi], eax
mov byte [esp + 0x56], 0
cmp word [ebp + 4], 0x30
jae 0x4ae4bb
mov dword [esi + 0xc], 0xffffffff
jmp 0x4ae4df
mov edx, dword [ebp + 0x2c]
mov dword [esi + 0xc], edx
cmp dword [esi + 0xc], 0
je 0x4ae4cd
cmp dword [esi + 0xc], 1
jne 0x4ae4df
cmp dword [ebp + 0x20], 0
je 0x4ae4df
mov byte [esp + 0x56], 1
mov dword [esi + 0xc], 0xffffffff
mov byte [esp + 2], 0
mov byte [esi + 0x2c], 0
mov byte [esi + 0x2d], 0
xor edx, edx
mov dword [esi + 0x10], edx
xor edx, edx
mov dword [esi + 0x14], edx
xor edx, edx
mov dword [esi + 0x18], edx
xor edx, edx
mov dword [esi + 4], edx
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0xffffffff
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
cmp byte [esp], 0
je 0x4ae557
lea eax, [esp + 0x55]
push eax
lea ecx, [esp + 0x58]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
call fcn.004addb8
mov edi, eax
jmp 0x4ae56a
lea ecx, [esp + 0x54]
lea edx, [esp + 8]
lea eax, [esp + 4]
call fcn.004add2c
mov edi, eax
cmp dword [esp + 4], 0
je 0x4aec41
test edi, edi
jne 0x4ae590
mov eax, dword [esp + 4]
cmp dword [eax], 0xffffffff
jne 0x4aec23
mov byte [esp + 2], 1
jmp 0x4aec23
mov byte [esp + 2], 1
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
cmp dword [edi], 0x20
jne 0x4ae5ab
cmp byte [edi + 9], 0
jne 0x4ae5ab
mov byte [esi + 0x2c], 1
test byte [edi + 8], 1
jne 0x4ae66c
cmp dword [ebp + 0x20], 0
jne 0x4ae66c
cmp word [ebp + 0x26], 0
jne 0x4ae66c
movzx eax, word [edi + 0x14]
add eax, edi
mov dword [esp + 0x10], eax
cmp dword [edi], 0x30
jne 0x4ae5fb
cmp byte [edi + 9], 0
jne 0x4ae5fb
cmp dword [edi + 0x10], 0x44
jb 0x4ae5fb
mov byte [esi + 0x2d], 1
cmp dword [esi + 0xc], 0xffffffff
jne 0x4ae66c
mov eax, edi
call fcn.004ae300
mov dword [esi + 0xc], eax
jmp 0x4ae66c
cmp dword [esi + 8], 0
je 0x4ae607
cmp dword [esi + 0xc], 0xffffffff
jne 0x4ae66c
cmp dword [edi], 0x90
jne 0x4ae66c
push 4
movzx ecx, byte [edi + 9]
mov edx, 0x66a984
movzx eax, word [edi + 0xa]
add eax, edi
call fcn.004adcc4
test eax, eax
jne 0x4ae66c
cmp dword [edi + 0x10], 0x30
jb 0x4ae66c
cmp dword [esi + 0xc], 0xffffffff
jne 0x4ae63f
mov eax, edi
call fcn.004ae2bc
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
add eax, 8
cmp dword [eax], 0x200
jb 0x4ae66c
mov eax, dword [esp + 0x10]
add eax, 8
mov eax, dword [eax]
call fcn.00411328
test al, al
je 0x4ae66c
mov eax, dword [esp + 0x10]
add eax, 8
mov eax, dword [eax]
mov dword [esi + 8], eax
test byte [edi + 8], 1
jne 0x4ae680
cmp dword [edi], 0x80
jne 0x4ae680
cmp dword [edi + 0x10], 0
ja 0x4ae6d6
test byte [edi + 8], 1
je 0x4ae6db
cmp dword [edi], 0x80
jne 0x4ae6db
mov eax, dword [edi + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
cmp edx, 0
jne 0x4ae6b0
cmp eax, 0
ja 0x4ae6d6
jmp 0x4ae6b2
jg 0x4ae6d6
mov eax, dword [edi + 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
cmp edx, 0
jne 0x4ae6d4
cmp eax, 0
jbe 0x4ae6db
jmp 0x4ae6d6
jle 0x4ae6db
mov dword [esi + 0x18], edi
jmp 0x4ae701
cmp dword [esi + 0xc], 0xffffffff
je 0x4ae6ed
cmp dword [esi + 0xc], 5
je 0x4ae6ed
cmp dword [esi + 0xc], 0xb
jle 0x4ae701
test byte [edi + 8], 1
jne 0x4ae701
cmp dword [edi], 0x30
jne 0x4ae701
cmp dword [edi + 0x10], 0x44
jb 0x4ae701
mov dword [esi + 0x18], edi
test byte [edi + 8], 1
je 0x4aec23
mov byte [esp + 3], 0
cmp dword [ebp + 0x20], 0
jne 0x4ae771
cmp word [ebp + 0x26], 0
jne 0x4ae771
cmp dword [edi], 0x80
jne 0x4ae732
cmp byte [edi + 9], 0
jne 0x4ae732
mov byte [esp + 3], 1
jmp 0x4ae771
cmp dword [esi + 0x14], 0
jne 0x4ae771
cmp dword [esi + 0x10], 0
jne 0x4ae771
cmp dword [edi], 0xa0
jne 0x4ae771
push 4
movzx ecx, byte [edi + 9]
mov edx, 0x66a984
movzx eax, word [edi + 0xa]
add eax, edi
call fcn.004adcc4
test eax, eax
jne 0x4ae771
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0xffffffff
mov eax, dword [edi + 0x18]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
cmp edx, 0xffffffff
jne 0x4ae795
cmp eax, 0xffffffff
je 0x4aec23
mov eax, dword [edi + 0x14]
xor edx, edx
test eax, eax
je 0x4ae7a8
mov byte [esp + 0xa0], 1
jmp 0x4ae7b7
mov eax, dword [edi + 0x1c]
xor edx, edx
test eax, eax
setne byte [esp + 0xa0]
cmp byte [esp + 0xa0], 0
jne 0x4aec23
mov eax, dword [edi + 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x24]
jne 0x4ae832
cmp eax, dword [esp + 0x20]
jae 0x4ae838
jmp 0x4aec23
jl 0x4aec23
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
movzx eax, word [edi + 0x20]
cmp eax, dword [esp + 0x4c]
jae 0x4aec23
movzx eax, word [edi + 0x20]
add eax, edi
mov dword [esp + 0x48], eax
movzx eax, word [edi + 0x20]
sub dword [esp + 0x4c], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x4c], 0
jbe 0x4aea16
mov eax, dword [esp + 0x48]
cmp byte [eax], 0
je 0x4aea16
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp edx, dword [esp + 0x2c]
jne 0x4ae8b1
cmp eax, dword [esp + 0x28]
jbe 0x4ae8b7
jmp 0x4aea16
jg 0x4aea16
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x54]
lea eax, [esp + 0x50]
call fcn.004ac808
test eax, eax
jne 0x4ae8e8
cmp dword [esp + 0x44], 0
jne 0x4ae8e6
cmp dword [esp + 0x40], 0
ja 0x4ae8fb
jmp 0x4ae8e8
jg 0x4ae8fb
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
jmp 0x4aec23
mov eax, dword [esp + 0x3c]
xor edx, edx
test eax, eax
je 0x4ae909
mov bl, 1
jmp 0x4ae914
mov eax, dword [esp + 0x44]
xor edx, edx
test eax, eax
setne bl
test bl, bl
je 0x4ae92b
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
jmp 0x4aec23
cmp dword [esp + 0x34], 0
jne 0x4ae9ae
cmp dword [esp + 0x30], 0
jne 0x4ae9ae
cmp dword [esp + 0x24], 0
jne 0x4ae9ae
cmp dword [esp + 0x20], 0
jne 0x4ae9ae
cmp byte [esp + 3], 0
je 0x4ae999
cmp dword [esi + 0x14], 0
je 0x4ae986
cmp dword [esi + 0xc], 0
je 0x4ae960
cmp dword [esi + 0xc], 1
jne 0x4ae9ae
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x1c]
jne 0x4ae9ae
cmp eax, dword [esp + 0x18]
jne 0x4ae9ae
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
cmp edx, dword [esp + 0x1c]
jne 0x4ae984
cmp eax, dword [esp + 0x18]
je 0x4ae9ae
mov dword [esi + 0x14], edi
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
jmp 0x4ae9ae
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x4ae9ae
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add dword [esp + 0x30], eax
adc dword [esp + 0x34], edx
cmp dword [esp + 0x50], 0
jne 0x4ae880
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
sub eax, 1
sbb edx, 0
cmp edx, dword [esi + 0x28]
jne 0x4ae9ef
cmp eax, dword [esi + 0x24]
jbe 0x4ae880
jmp 0x4ae9f5
jle 0x4ae880
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
sub eax, 1
sbb edx, 0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
jmp 0x4ae880
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, 1
adc edx, 0
cmp edx, dword [esp + 0x34]
jne 0x4aea2e
cmp eax, dword [esp + 0x30]
je 0x4aea43
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
jmp 0x4aec23
cmp dword [esp + 0x24], 0
jne 0x4aec23
cmp dword [esp + 0x20], 0
jne 0x4aec23
cmp dword [ebp + 0x20], 0
jne 0x4aec23
cmp word [ebp + 0x26], 0
jne 0x4aec23
mov eax, dword [edi + 0x28]
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
cmp edx, 0
jne 0x4aea9e
cmp eax, 0
je 0x4aec23
mov eax, dword [edi + 0x28]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xac], eax
cmp dword [esp + 0xac], 0
jne 0x4aeae8
cmp dword [esp + 0xa8], 0
jae 0x4aeb75
jmp 0x4aeaee
jge 0x4aeb75
push dword [esp + 0x34]
push dword [esp + 0x34]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
cmp dword [esp + 0x64], 0
jne 0x4aeb28
cmp dword [esp + 0x60], 0
jbe 0x4aeb42
jmp 0x4aeb2a
jle 0x4aeb42
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub eax, dword [esp + 0x60]
sbb edx, dword [esp + 0x64]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
push dword [esp + 0x34]
push dword [esp + 0x34]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
sub eax, dword [esp + 0x68]
sbb edx, dword [esp + 0x6c]
call fcn.0040517c
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
jmp 0x4aebc1
push dword [esp + 0x34]
push dword [esp + 0x34]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
call fcn.00405210
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
push dword [esp + 0x34]
push dword [esp + 0x34]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
call fcn.0040517c
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x64], 0
jne 0x4aec23
cmp dword [esp + 0x60], 0
jne 0x4aec23
cmp dword [esp + 0x5c], 0
jne 0x4aebf8
cmp dword [esp + 0x58], 0x200000
ja 0x4aec23
jmp 0x4aebfa
jg 0x4aec23
cmp dword [esp + 0x5c], 0
jne 0x4aec0d
cmp dword [esp + 0x58], 0x200
jb 0x4aec23
jmp 0x4aec0f
jl 0x4aec23
mov eax, dword [esp + 0x58]
call fcn.00411328
test al, al
je 0x4aec23
mov eax, dword [esp + 0x58]
mov dword [esi + 4], eax
lea ecx, [esp + 0x54]
lea edx, [esp + 8]
lea eax, [esp + 4]
call fcn.004adfb0
mov edi, eax
cmp dword [esp + 4], 0
jne 0x4ae575
cmp byte [esi + 0x2c], 0
je 0x4aec4e
xor eax, eax
mov dword [esi + 4], eax
jmp 0x4aec52
mov byte [esi + 0x2d], 1
movzx eax, byte [esp + 2]
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
add esp, 0xb8
pop ebp
pop edi
pop esi
pop ebx
ret