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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
mov eax, dword [edi]
dec eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
cmp word [eax + 8], 0x33
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x60], 3
jne 0x450a96
mov esi, 2
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], esi
cmp dword [0x4d2380], ebx
je 0x40cf73
xor al, al
test al, al
jne 0x40cf7a
mov eax, dword [0x4d2384]
cmp byte [0x4d2389], bl
jne 0x450a9d
push eax
push ecx
mov dword [ebp + 0xc], eax
call fcn.0040bbe0
test al, al
je 0x40cf51
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40cf51
mov ebx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
and ebx, 0xff00
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x40cf1e
test ebx, 0x100
jne 0x450aa5
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
cmp word [eax + 8], 0x4e
je 0x450abf
mov eax, dword [ecx + esi*4]
mov dword [ebp - 0x54], edx
cmp word [eax + 8], 0
je 0x450b1f
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x20]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 4]
inc esi
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.0040ec40
test eax, eax
js 0x40cee7
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
cmp esi, eax
je 0x40cc4c
cmp dword [esi + 0xc], 4
je 0x40cf64
mov ecx, esi
call fcn.0040cfa0
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004100e0
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0
jne 0x450ed5
test dword [ebp + 0x42], esi
add al, 0
cmp dword [eax], 0xf
jne 0x450ed5
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x20]
push 0xffffffffffffffff
push eax
inc ecx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ecx
mov ecx, esi
push ebx
call fcn.0040ec40
test eax, eax
js 0x40cee7
lea ecx, [ebp - 0x50]
call fcn.0040cfa0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.004100e0
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
cmp word [eax + 8], 0
je 0x450ca5
lea ecx, [ebp - 0x40]
call fcn.0040cfa0
mov esi, 1
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
cmp ecx, 1
jne 0x450cdf
mov al, cl
test al, al
je 0x450ce6
mov al, 1
test al, al
je 0x450cf6
mov al, 1
test al, al
je 0x450d06
inc eax
add al, 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 1
sete al
test al, al
jne 0x40cf17
xchg esp, eax
rol byte [eax + eax*8 + 0x214850f], 0
add byte [ebx - 0x7bf0fd07], al
sbb al, 0x40
add al, 0
add byte [eax], al
cmp ecx, 2
je 0x450d28
test al, al
jne 0x40cf17
test al, al
jne 0x40cf10
add byte [ebx + 0xf03bc7d], al
test byte [ebp + 2], ch
add byte [eax], al
cmp dword [ebp - 0x44], 3
je 0x40cf93
test al, al
jne 0x40cf10
test al, al
jne 0x40cd4d
lea ecx, [ebp - 0x50]
call fcn.0040af2d
lea ecx, [ebp - 0x50]
test al, al
jne 0x450d2f
call fcn.0040b415
mov esi, dword [ebp - 0x34]
cmp esi, 1
jne 0x450d39
mov al, 1
test al, al
je 0x450d40
mov al, 1
test al, al
je 0x450d53
mov al, 1
test al, al
je 0x450d66
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
cmp word [eax + 8], 0x7f
jne 0x450d89
test dword [ecx], eax
inc eax
add al, 0
mov ebx, dword [ebp - 0x58]
xor dl, dl
xor esi, esi
invalid
nop
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
cmp eax, dword [0x4d23a0]
jg 0x40cddd
test eax, eax
jle 0x40cddd
shl eax, 4
add eax, dword [0x4d23dc]
je 0x40cddd
test dl, dl
jne 0x40cddd
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 8], 0
jne 0x40cd90
mov eax, dword [eax]
sub eax, 0xd
je 0x40cf5e
sub eax, 1
jne 0x40cd90
test esi, esi
jne 0x40cf58
mov dl, 1
lea ebx, [ecx - 1]
jmp 0x40cd90
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x58], ebx
call fcn.0040b567
mov esi, dword [ebp + 0xc]
cmp eax, 1
je 0x450e2b
cmp dword [esi + 0xc], 8
je 0x450d95
cmp dword [ebp - 0x44], 5
je 0x450e4c
xor al, al
test al, al
jne 0x450ea2
cmp dword [ebp - 0x44], 0xf
je 0x450e53
test al, al
jne 0x450ea2
lea ecx, [ebp - 0x20]
call fcn.0040cfa0
fldz
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 3
fstp qword [ebp - 0x20]
call fcn.0040b649
test al, al
jne 0x450e5a
mov al, 1
test al, al
je 0x450e86
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.0040b649
test al, al
jne 0x450e61
mov al, 1
test al, al
je 0x450e99
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x5c]
cmp byte [eax + 0x16d], 0
jne 0x450e68
push 0x38
call fcn.0041fddb
mov ecx, dword [ebp - 0x60]
mov esi, eax
add esp, 4
lea eax, [ebp - 0x50]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x58]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
mov dword [esi + 4], ebx
push eax
mov dword [ecx + 8], 0
call fcn.004100e0
lea eax, [ebp - 0x40]
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x20]
push eax
call fcn.004100e0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x168]
mov dword [esi + 0x30], eax
mov dword [ecx + 0x168], esi
inc dword [ecx + 0x164]
lea eax, [ebx + 1]
mov dword [edi], eax
lea ecx, [ebp - 0x30]
call fcn.0040cfa0
lea ecx, [ebp - 0x20]
call fcn.0040cfa0
lea ecx, [ebp - 0x40]
call fcn.0040cfa0
lea ecx, [ebp - 0x50]
call fcn.0040cfa0
pop edi
pop esi
mov al, 1
jmp 0x40cd2e
mov al, 1
jmp 0x40cd14
lea ecx, [ebp - 0x20]
call fcn.0040cfa0
push 1
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 1
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
call fcn.0040a81b
mov edx, eax
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], edx
jmp 0x40cbe2
xor edx, edx
jmp 0x40cbc8
dec esi
jmp 0x40cd90
inc esi
jmp 0x40cd90
cmp dword [ebp - 0x14], 4
jne 0x40cc3a
jmp 0x450c8c
mov al, 1
jmp 0x40cb84
lea eax, [ebp - 0xc]
push eax
push ecx
mov ecx, 0x4d2370
call fcn.0041d336
mov ebx, dword [ebp - 0xc]
mov edx, eax
jmp 0x40cbc8
mov al, 1
jmp 0x40cd26
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0041fe23
cld
inc eax
invalid
add al, 0x6a
or bh, bh
jmp 0x40ca1d
dec dword [ebx - 0x71ff1735]
sti
jne 0x450b09
adc al, 0xe9
ja 0x450a62
sti
invalid
mov ecx, 0x75c094
jmp 0x450ac2
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xa]
cwde
push eax
push ecx
jmp 0x450eee
mov eax, dword [edx + 0xc]
cmp eax, 5
jne 0x450af3
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push 2
push eax
lea eax, [ebp - 4]
push eax
push ebx
call 0xe84879c5
call 0x5cd1a69
invalid
cmp eax, 0xf
jne 0x450b1c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push 8
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0041a317
test eax, eax
js 0x40cef6
cld
inc dword [ebp - 0x1c77f040]
ret
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov dword [ebp + 0xc], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*4]
cmp word [eax + 8], 0x4e
je 0x450ace
jmp 0x7640cc05
add byte [eax], al
add bh, al
inc ebp
rol byte [ecx], 1
add byte [eax], al
add cl, ch
call 0x8c45085c
dec esi
or byte [ebx - 0x37c417bb], cl
je 0x40cc5b
mov dl, 0xbf
sti
call dword [eax - 0x18]
daa
pushfd
sti
invalid
push eax
call fcn.0040a8d6
jmp 0x7640cc5b
dec ebp
shr al, 0x14
mov al, byte [0x758bfffb]
int3
mov esi, dword [ebp - 0x34]
jmp 0x7640ccd4
stc
add cl, byte [edi]
test bh, ch
mov edi, 0xc03275fb
jmp 0x40ccef
stc
add ecx, dword [edi]
test cl, ch
mov edi, 0xc03275fb
jmp 0x40ccf9
jmp 0x40cd01
cmpsb byte [esi], byte es:[edi]
sti
mov ebp, ecx
retf 0xfbbf
jmp 0x40cd1b
mov al, byte [0x11e9fffc]
sar bl, 0x75
xor al, al
jmp 0x7640cd67
xchg esp, eax
rol byte [eax + eax*8 - 0x3fed7af1], 0xfb
invalid
xchg esp, eax
rol byte [eax + eax*8 - 0x3ff67af1], 0xfb
invalid
jmp 0x40cd83
mov edi, 0xbf0ffffb
inc eax
or dl, byte [eax + 0x6a]
jb 0x450d89
dec edx
add byte [ebx - 0x43b27488], al
cmp ecx, 5
je 0x76440e5b
cmp ecx, 0xf
je 0x7640ce0d
lea ecx, [ebp - 0x30]
call 0x7640cfaf
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x30], 0xd2850000
call fcn.0040cfaf
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0x75c08501
push eax
push esi
mov dword [ebp - 0x20], 0xd2850000
call fcn.00484532
lea ecx, [ebp - 0x30]
call fcn.0041d2f2
mov ecx, esi
test al, al
jne 0x450e44
push 0x49cc08
call 0x76409c7d
lea ecx, [ebp - 0x30]
call 0x7640cfaf
sar ebx, 0x75
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x30], 0xd2850000
call 0x8c40cfaf
mov dword [ebp - 0x14], 1
mov eax, edi
inc ebp
in al, dx
add dword [eax], eax
add byte [eax], al
mov dword [ebp - 0x20], 0xd2850000
lea eax, [ebx + 1]
mov dword [edi], eax
jmp 0x40cef6
lea eax, [ebp - 0x20]
push eax
call fcn.0040acfa
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040acfa
jmp 0x450ec7
dec dword [ebp - 0x72af2fbb]
dec ebp
shr al, 0xa1
sahf
sti
invalid
insb byte es:[edi], dx
mov al, 1
jmp 0x7640ce19
jne 0x450e13
add ecx, ebp
ret 0xfbbf
jne 0x450e9c
shr cl, 0xec
mov edi, 0xc03275fb
jmp 0x7640ce78
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x16d], 0
jmp 0x7640ceeb
into
call fcn.0040b658
test byte [ebx + 0xf], bh
cmpsd dword [esi], dword es:[edi]
sti
inc dword [ebx + edi*2 - 0x7b3f6bf1]
sal byte [ebp + 0x1f], 0x8b
inc ebp
test al, 0x40
xchg esp, eax
rol byte [eax + eax*8 + 0x458b1f75], 0xa8
inc eax
jmp 0x7640cef4
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ecx + 0x164]
call fcn.004028a9
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [edi], eax
rcr byte [ecx], 1
sti
dec dword [ebx - 0x76bf5bbb]
pop es
jmp 0x40cef6